<%--
/**
* Prints error messages received from Login (LoginHandler Servlet).
*
* @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 - errorPrinter.jsp</title>
<meta http-equiv="Content-Type" content="text/html; 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>"errorPrinter.jsp" is running...</strong></font></h1>
<br />
<img src="images/error_icon.jpg" width="50px" height="50px" />
<br />
<h2>Whoops Error:</h2>
<br />
<strong>
<%-- Gets & prints the error from the request --%>
<%= request.getAttribute("error").toString() %>
</strong>
</div>
<%-- Include the page "footer.html" --%>
<jsp:include page="footer.html" />
</body>
</html>
|