error404.jsp
<%--
/**
 * This page is displayed whenever HTTP Status 404 error occurs.
 
 @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 - error404.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-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>"error404.jsp" is running...</strong></font></h1>
          <br />

      <img src="images/error_icon.jpg" width="50px" height="50px" />
      <br />
      <h2>Whoops Error:</h2>
      <br />
      <strong>The page you requested was not found, and we have a fine guess why:</strong>
      <br/>
      <u>1If you typed the URL directly, please make sure the spelling is correct</u>
      <strong>OR</strong>
      <u>2If you clicked on a link to get here, the link is outdated.</u>
    </div>
    
<%-- Include the page "footer.html" --%>    
<jsp:include page="footer.html" />    
    
  </body>
</html>