Index

Edit loginForm.jsp

When adding code to the .java and .jsp files specified below, I've inserted a "<LAB>" indicator in the code that you can look for.

  1. Start Tomcat and make you can login at http://localhost:8080/appfuse-lab
  2. Add a checkbox to the login page. Open your favorite JSP/HTML editor and add the following code to web/pages/loginForm.jsp.
    <input type="checkbox" name="rememberMe" id="rememberMe" /> 
        Remember Me
  3. Notice how the action of the form is "/auth/" rather than "j_security_check"? This is so we can encrypt passwords programmatically if the container does not provide it (Tomcat does).
Slide No: 3