This login page is meant to work for JAAS.
Once you configure your server for JAAS authentication
you should have the following values and you cannot change them:
if the authentication method is form then the action of the form shoud be j_security_check
the username field name should be:j_username
the password field name should be: j_password
changing anything in the above values the authentication will not work.
As for the redirection it is configured in the web.xml in the following tag:
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login.do</form-login-page>
<form-error-page>/loginRetry.do</form-error-page>
</form-login-config>
</login-config>
anyway for more details about JAAS go to this link:
http://java.sun.com/j2se/1.4.2/docs/guide/security/jaas/tutorials/GeneralAcnOnly.html