Hi all, my first post.......
I have an action login that inserts loggin info into a db and sends the user to a jsp page.
this is how i configure the struts.xml:
The following step should be to recognize the type of user logged in (admin or normal_user) and send him respectively to index_priv.jsp or index_pub.jsp
At the moment I can get info about the user check if he is an admin or normal_user, but I cannot figure out where to put the redirect ?
Do I need to put this command into the struts.xml ? I was trying to create an interceptor .... am i in the right direction ??
I hope I made myself clear
Alberto
A man who works with his hands is a laborer; a man who works with his hands and his brain is a craftsman; but a man who works with his hands and his brain and his heart is an artist. Louis Nizer.
You have a user log in and if he is in one role you want him to go to one page and if he is in another role go to another page, right?
I usually create a "home" action that determines which role the user is in and redirects him to the appropriate home page. The login action redirects to the home action if authentication is successful. I'm sure there are other ways to go about it.