6 Replies Latest reply on Nov 9, 2004 12:18 PM by Victor Abc

    Problem with j_security_check, Form Login and Filter

    Victor Abc Newbie

      Hi all,

      I have a Form for login and its html snippet is:


      form method="post" action="/myApp/j_security_check"
      Userid:<input type="text" name="j_username"
      Password:<input type="password" name="j_password"
      ....

      There is a Filter and its deployment descriptor is:

      <filter-name>LogginFilter</filter-name>
      <display-name>Loggin Filter</display-name>
      <filter-class>controller.LogginFilter</filter-class>

      <filter-mapping>
      <filter-name>LogginFilter</filter-name>
      <url-pattern>/j_security_check</url-pattern>
      </filter-mapping>

      But I can see that the HTTP Request from the Web Form does not invoke the LogginFilter and the result page is a HTTP Status 403 - Access to the requested resource has been denied.

      I have read JAAS HOWTO but I cannot find the problem.
      Is j_security_check supported on jboss 3.2.6 and jboss 4.0 ?

      Any help would be greatly appreciated.
      All the best,

      Victor