Form based authentication in Jboss AS -
i looking enabling form-based authentication tutorial , question is:
my 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>
questions:
should create common login page
login.html
?should contain
post form
? post (i mean action servlet form is)?
as written in tutorial provided:
the server recognizes form authentication requests when uri ends /j_security_check , @ least j_username , j_password parameters exist.
so login
screen suppose like:
<h3>login form</h3> <form action="j_security_check" method="post"> email:<input type="text" name="j_username"/><br/><br/> password:<input type="password" name="j_password"/><br/><br/> <input type="submit" value="login"/> </form>
Comments
Post a Comment