Home »
Posts Tagged "siteweb en jsp"
By
java | Published:
7 July 2014
ut type="submit" value="Submit details" />
</form>
</body>
</html>
//displayDetails.jsp
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<ht |
By
java | Published:
6 July 2014
<HTML>
<HEAD>
<TITLE>Using Multidimensional Arrays</TITLE>
</HEAD>
<BODY>
<H1>Using Multidimensional Arrays</H1>
<%
double accounts[][] = new double[2][100];
accounts[0][3] = 11.09;
accounts[1][3] = 19.07;
out.println("Savings Account 3 holds $" + accounts[0][3] + "<BR>");
out.println("Checking Account 3 holds $" + accounts[1][3]);
%>
</BODY>
</HTML>
|
By
java | Published:
6 July 2014
response.getOutputStream();
String fileName = request.getParameter("file");
out.println("<html>");
out.println("<head>");
out.println("<title>W |
By
java | Published:
3 July 2014
value = v;
}
}
void doWork(int value) throws NewException
{
if(value |
By
java | Published:
3 July 2014
l.value.value}" /><br><br>
</c:forEach>
</c:otherwise>
</c:choose>
</body>
</html>
// cookieSetter.jsp
<jsp:useBean id="cookieBean" class="com.java2s.CookieB |
By
java | Published:
25 June 2014
<HTML>
<HEAD>
<TITLE>Catching an ArrayIndexOutOfBoundsException Exception</TITLE>
</HEAD>
<BODY>
<H1>Catching an ArrayIndexOutOfBoundsException Exception</H1>
<%
try {
int array[] = new int[100];
array[100] = 100;
} catch (ArrayIndexOutOfBoundsException e) {
out.println("Array index out of bounds.");
} catch(ArithmeticException e) {
out.println("Arithmetic exception: " + e);
} catch(Exception e) {
out.println("An error occurred: " + e);
}
%>
</BODY>
</HTML>
|
By
java | Published:
23 June 2014
NPUT TYPE="radio" NAME="radios" VALUE="radio3">
Radio Button 3
<BR>
<INPUT TYPE="submit" VALUE="Submit">
</FORM>
|
By
java | Published:
20 June 2014
new XSLTInputSource("games.xsl"),
new XSLTResultTarget(bos));
out.println(bos);
} catch (Exception ex) {
|
By
java | Published:
18 June 2014
<HTML>
<HEAD>
<TITLE>Using jspInit and jspDestroy</TITLE>
</HEAD>
<BODY>
<H1>Using jspInit and jspDestroy</H1>
<%!
int number;
public void jspInit()
{
number = 5;
}
public void jspDestroy()
{
number = 0;
}
%>
<%
out.println("The number is " + number + "<BR>");
%>
</BODY>
</HTML>
|
By
java | Published:
16 June 2014
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<html>
<head><title><fmt:message key="Welcome" bundle="i18n.WelcomeBundle" /></title></head>
<body>
<h2>Here is your Locale info...</h2>
<fmt:message key="Welcome" bundle="i18n.WelcomeBundle" />
<%-- <c:set var="clientLocale" value="${pageContext.request.locale}" />
Locale: <c:out value="${clientLocale.displayName}" />
<br />
Locale country: <c:out value="${clientLocale.displayCountry}" />
<br />
Locale language: <c:out value="${clientLocale.displayLanguage}" />--%>
</body>
</html>
|
By
java | Published:
14 June 2014
<HTML>
<HEAD>
<TITLE>Creating an Array</TITLE>
</HEAD>
<BODY>
<H1>Creating an Array</H1>
<%
double accounts[];
accounts = new double[100];
accounts[3] = 119.63;
out.println("Account 3 holds $" + accounts[3]);
%>
</BODY>
</HTML>
|
By
java | Published:
13 June 2014
d" value="${chk.password}" scope="request" />
</c:if>
<html>
<head><title>Client Checker</title></head>
<body>
<h2>Welcome</h2>
<strong>Email</strong>: |
By
java | Published:
11 June 2014
on</td>
<td>${'${'}10 - 10 }</td>
<td>${10 - 10}</td>
</tr>
<tr>
<td>Multiplication</td>
<td>${'${'}10 * 10 }</t |
By
java | Published:
7 June 2014
wf">
<PARAM name="quality" VALUE="high">
<PARAM name="bgcolor" VALUE="#FFFFFF">
<EMBED SRC=
"coolFlashMov.swf" quality="high" width="293" height="423"
|
By
java | Published:
7 June 2014
D>
//File: index.html
<HTML>
<HEAD>
<TITLE>Insertion de texte dans champ de texte</TITLE>
</HEA>
<BODY>
<FORM NAME="form1">
<INPUT TYPE="TEXT" VALUE="Bienvenu JSP!">
<INPUT TYPE="SUBMIT" VALUE="Envoyer!">
|