ReadForm.jsp
<%--
/**
 * Reads and prints data (parameters name and surname) from an http request.
 
 @author Sofoklis Stouraitis
 */
--%>

<%--   Set content type --%>
<%page contentType="text/html; charset=Windows-1253" %>

<html>
  <head>
    <title>A Simple JSP Example - 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"); %>        
        
    <h1><font color="#000066"><strong>"ReadForm.jsp" is running...</strong></font></h1>
    <br />    
    
    <%--   Gets the results from the request --%>
    <% 
    String name = request.getParameter("name");
    String surname = request.getParameter("surname");
    
    if ((name == null|| (surname == null|| !(name.length() 0|| !(surname.length() 0)) {
    %>
    <h2>Δεν έχετε συμπληρώσει όλα τα πεδία!</h2>
    <% 
    else {
    %>
    <h2>Εισαγάτε τα παρακάτω στοιχεία:</h2>
    <b>Όνομα: </b><%= name %> <br>
    <b>Επώνυνο: </b><%= surname %> <br>
    <%
    }
    %>  
  </body>
</html>