<%--
/**
* Prints the login form.
*
* @author Sofoklis Stouraitis
*/
--%>
<%-- Set content type --%>
<%@ page contentType="text/html; charset=Windows-1253" %>
<%-- Define error page.
Redirect to "applicationErrorPage.jsp" if encounter an error --%>
<%@ page errorPage="applicationErrorPage.jsp" %>
<html>
<head>
<title>1ο Παράδειγμα JSP - jspExercise1.jsp</title>
<meta http-equiv="Content-Type" content="text/html; charset=charset=Windows-1253">
</head>
<body>
<%-- We need this line in order to pass parameters in greek, we can use UTF-8 charset as well.
Try to comment out ("//") this line to see the difference.
--%>
<% request.setCharacterEncoding("ISO-8859-7"); %>
<%-- Include page "header.jsp" passing the parameter "exampleNumber" --%>
<jsp:include page="header.jsp">
<jsp:param name="exampleNumber" value="1ο Παράδειγμα" />
</jsp:include>
<div style="height:500px;text-align:center;">
<h1><font color="#000066"><strong>"jspExercise1.jsp" is running...</strong></font></h1>
<br />
<h2><font color="#000066"><strong>Please enter username and password to register in the database :</strong></font></h2>
<form name="form1" method="post" action="Login">
<br />
<br />
<table width="31%" border="0" align="center">
<tr>
<td width="35%">
<div align="right">
<font size="3" face="Georgia, Times New Roman, Times, serif"><strong>user:</strong></font>
</div>
</td>
<td width="65%">
<input name="USER_NAME" type="text" id="USER_NAME">
</td>
</tr>
<tr>
<td>
<div align="right">
<font size="3" face="Georgia, Times New Roman, Times, serif"><strong>password:</strong></font>
</div>
</td>
<td>
<input name="PASSWORD" type="password" id="PASSWORD">
</td>
</tr>
</table>
<p>
<input type="submit" name="Submit" value="Submit for Registration">
<input type="reset" name="Submit2" value="Clear Fields">
</p>
</form>
<h3>Please try the options below!!!</h3>
<p>
<strong><font color="#990000" face="Georgia, Times New Roman, Times, serif">Username: test
<br />
Password : 111</font></strong>
</p>
</div>
<%-- Include the page "footer.html" --%>
<jsp:include page="footer.html" />
</body>
</html>
|