title: How does j_security_check works in weblogic?
body: <p>I want to know that how does form based authentication works in weblogic.</p>
  
  <p>My request is that once user is successfully authenticated,i want to forward request to spring controller and return the required view page.For this i have coded pages as below:</p>
  
  <p>In Login Page,on clicking submit I am calling action action=j_security_check method=post.</p>
  
  <p>In web.xml</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;servlet-mapping&gt;
      &lt;servlet-name&gt;LServlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/j_security_check&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  
  
  &lt;login-config&gt;
      &lt;auth-method&gt;FORM&lt;/auth-method&gt;
      &lt;realm-name&gt;realm&lt;/realm-name&gt;
      &lt;form-login-config&gt;
          &lt;form-login-page&gt;/Login.jsp&lt;/form-login-page&gt;
          &lt;form-error-page&gt;/FailLogin.jsp&lt;/form-error-page&gt;
      &lt;/form-login-config&gt;
  &lt;/login-config&gt;
  
  &lt;security-role&gt;
      &lt;role-name&gt;TEST&lt;/role-name&gt;
  &lt;/security-role&gt;
  
  &lt;security-constraint&gt;
      &lt;web-resource-collection&gt;
          &lt;web-resource-name&gt;All&lt;/web-resource-name&gt;
          &lt;url-pattern&gt;*.jsp&lt;/url-pattern&gt;
          &lt;url-pattern&gt;*.htm&lt;/url-pattern&gt;
      &lt;/web-resource-collection&gt;
      &lt;auth-constraint&gt;
          &lt;role-name&gt;TEST&lt;/role-name&gt;
      &lt;/auth-constraint&gt;
  &lt;/security-constraint&gt;  here
  </code></pre>
  
  <p>On successful authentication,iam not being redirected to LServlet which actually forwards request to Spring Controller.
  Can any one explain how form based authentication works on Weblogic.</p>