Redirect into two different page after login.jsp according user category

Posted by Ryon on Stack Overflow See other posts from Stack Overflow or by Ryon
Published on 2010-05-14T15:32:36Z Indexed on 2010/05/14 16:44 UTC
Read the original article Hit count: 209

Filed under:
|
|

I have created a login.jsp with some login username and password. Users are categorized into A and B. Then I have to redirect each user according to the user category. I also need to retrieve the username in the next page. My form in login.jsp page is something like this:

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

Do I have to use javax.servlet.Filter? what should be added in web.xml?

Anyone had an idea how to do it?

© Stack Overflow or respective owner

Related posts about jsp

Related posts about login