title: Form based authentication in Jboss AS
body: <p>I am looking into <a href="https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/5/html/Security_Guide/Enabling_FORM_Authentication.html" rel="nofollow">Enabling Form-based Authentication</a> tutorial and my question is:</p>
  
  <p>My <code>web.xml</code>:</p>
  
  <pre><code>&lt;login-config&gt;
    &lt;auth-method&gt;FORM&lt;/auth-method&gt;
    &lt;form-login-config&gt;
      &lt;form-login-page&gt;/login.html&lt;/form-login-page&gt;
      &lt;form-error-page&gt;/error.html&lt;/form-error-page&gt;
    &lt;/form-login-config&gt;
  &lt;/login-config&gt;
  </code></pre>
  
  <p><strong>Questions:</strong></p>
  
  <ol>
  <li><p>Should I create now common login page <code>login.html</code>?</p></li>
  <li><p>Should it contain <code>POST form</code>? Post where to (I mean what action servlet for this form is)? </p></li>
  </ol>