Class |
|
---|---|
Component |
|
FormLoginServlet
handles login forms so they meet the criteria outlined in the Servlet 2.2 specification. Namely, usernames and passwords are saved to fields called j_username
and j_password
respectively. The action
attribute is automatically set to j_security_
check, as required by the Servlet 2.2 specification, to ensure that after the form is submitted, the user is directed to a page within the current Web application. The j_security_check
parameter is resolved during runtime: FormLoginServlet
examines the user’s security information and sets j_security_check
to the appropriate destination URLs contained within FormLoginSession
.