Difference between version and version      View first change»»

Back to Web.xml.FormLoginPage, or Web.xml.FormLoginPage version history

At line 7 added 15 lines.
The login page can be designed by the developer, and must contain a <form> with:
* A username field called ''j_username''
* A password field called ''j_password''
* The form __action__ attribute must be set to ''j_security_check''
\\
!What happens to URL parameters when a protected resource is accessed?
Any request parameters sent to the protected resource are preserved, and sent to the resource after successful login. For example:
{{{
1. Request by unauthorized user: /private/somepage.jsp?arg1=abc
2. Server asks user to login, by sending them to the login page
3. The user logs in successfully
4. The user is redirected to: /private/somepage.jsp?arg1=abc
}}}
At line 24 added 3 lines.
*[web.xml] Reference Page - for a full example of a security constraint
*[Security Realms] - basic description of the elements required to implement authentication
*[Metawerx Tomcat Realms Administrator] - metawerx tool for JDBC-based authentication
navigation
metawerx specific
search
Share
tools
help

referring pages

Share