<%-- navigationInclude.jsp Alan Pinder - April 10th 2005 This page is an 'include' page. It is never shown by itself, rather it is always 'included' by using the <%-- Standard page declarations --%> <%@ page import="apz.db.*" %> <%@ page session="true" %> <%@ page errorPage="error.jsp" %> <% // Check to see whether we are logged in or not boolean isActive = (session.getAttribute("isActive") != null); // isActive = false; %>
<% if(isActive) { // If they are logged in, show banner and logout button out.print("\r\n"); out.println("\r\n"); out.println("\r\n"); } else { // If we are *NOT* logged in, display the login form // Username + dialog box // Password + dialog box // Submit button out.println(""); out.println(""); out.println(""); out.println(""); out.println(""); } %>
logo \r\n"); out.print("
    \r\n"); out.print("
  • MENU\r\n"); out.print("
      \r\n"); out.print("
    • opt 1
    • \r\n"); out.print("
    \r\n"); out.print("
  • \r\n"); out.print("
\r\n"); out.print("
Welcome back, " + session.getAttribute("userName").toString() + "LOGOUT
Username Password Search