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

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -