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:

  1. should create common login page login.html?

  2. 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

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -