1 Reply Latest reply on Oct 10, 2007 1:07 PM by Anil Saldanha

    Can I use RequestDispatch.include to call j_security_check?

    Eric Lee Newbie



      <form action="MyLoginServlet">
      <input type="text" name="j_username">
      <input type="password" name="j_password">

      MyLogin.jsp => MyLoginServlet (check username/password and do something else)
      => forward to Redirect.jsp
      => forward to /auth/AuthIndex.jsp (If check pass in MyLoginServlet)

      I try to use RequestDispatch.include to call j_security_check before forwrad to AuthIndex.jsp(Login pass), but after forwarded to AuthIndex.jsp, when I try to open other JSPs under /auth, IE kick me to MyLogin.jsp...

      Do I miss something? or how to do with programmtic authentication in servlet /JSP?

      Note:JBoss ver 3.2.8 sp1 / JDK 1.4.2