%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1" session="true"%>
Insert title here
This is page two
<%java.time.format.DateTimeFormatter dtf = java.time.format.DateTimeFormatter
.ofPattern("yyyy/MM/dd HH:mm:ss");
java.time.LocalDateTime now = java.time.LocalDateTime.now(); %>
Current time : <%= now%>
<%
session = request.getSession();
//out.println("val = " + sessionFromReq);
%>
<%
//out.println("val of session = " + session);
//out.println("val of session = " + session);
String nameVal = "null Name";
String tmVal = "null Time";
if (null != session.getAttribute("name")) {
nameVal = String.valueOf(session.getAttribute("name"));
}
//out.println("
Input Text : " + nameVal);
if (null != session.getAttribute("currTime")) {
tmVal = session.getAttribute("currTime").toString();
}
//out.println("
Time : " + tmVal + "
");
//String nameFromPage3 = String.valueOf(session.getAttribute("nameFromPage3"));
if ("Go to page 3".equals(request.getParameter("bSubmit"))) {
%>
<%
}if ("Go to page 1".equals(request.getParameter("bBack"))) {
%>
<%} %>