3 Replies Latest reply on Apr 1, 2002 1:20 PM by Mike

    Bad redirection in form based authentification

    paja Newbie

      Iam using then form- based authentification.
      web.xml is ok, database is ok. But I have a problem.

      If I am using a simple login.jsp script:



      <form method="POST" action='<%= response.encodeURL("j_security_check") %>' >
      Username:
      Password:





      It works perfectly, but if I try include some other file or for example some css styles, then after authentification the page is redirected on the css style.
      I need to redirect to index.jsp. Could somebody me?

      This works bad:






      <form method="POST" action='<%= response.encodeURL("j_security_check") %>' >
      Username:
      Password:





      I am redirected to http://localhost:8080/resources.styly.css

      do somebody knows why?