Doubt on Form Based Authentication
I have created web.xml and login.html, error.html entries as per given
the book instructions.
My
Tomcat webapp is karthik which is in
d:\tomcat5\webapps\karthik
Following is my configuration.
when i tried http:\\localhost:8080\karthik\login.html
i get the login page when i submit the
i get error 404 http:\\localhost:8080\karthik\j_security_check not found
I have a doubt whether we have to request the constrained to enable the form
based authentication or login page. Please explain
web.xml
-------
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login.html</form-login-page>
<form-error-page>/Error.html</form-error-page>
</form-login-config>
</login-config>
I kept the login.html and Error.html
in the webapp "karthik"
PATH IS D:\tomcat5\webapps\karthik
login.html
----------
<form method="POST" action="j_security_check">
<input type="text" name ="j_username">
<input type="password" name="j_password">
<input type="submit" value="Enter">
</form>
Error.html
----------
<html> <body>
sorry dude, wrong password </body> </html>