<%@ extends = "adminLogin2" %> <% // THIS IS A JSP FILE /* * Some caveats: in order for the above to work, they must be in the same directory * Depending on your servlet engine, you may be able to path to the class, * Ex: extends = "jsp.myStuff.adminLogin2" if the .jsp file was in * directory /jsp/myStuff/adminLogin2.jsp * Also, the class being extended must be first compiled (hit the jsp page) * before anyone can successfully extend it */ HttpSession mySession = request.getSession(true); if (!checkUserPermission(mySession, request, response)) { // you are not logged in response.sendRedirect("adminLogin2.jsp"); } %> If I got this far I passed the login test.
Now I can continue with my code.