...
Here the important considerations are:1.-
- The username field is named j_username and password is named j_password. These are typical default field names for many different Java authentication systems.
...
- The action of the login form is typically j_security_check.
If authentication fails, most authentication systems allow you to provide an error page, the example code available below includes this as well.
...