-
Feb 22nd, 2011, 08:08 AM
#1
redirecting to different pages based on User Role - struts2
I am able to authenticate the user from the database but there are different users in my app so I want to redirect them to their different homepages based on their Role.
The best way I guess would be by checking the user role in a struts action and then redirecting to appropriate page. But how do I do that. Does spring security set session variables storing authentication information.
If yes, then how do I access them in a struts action. Also how do I access the username and password after login
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules