I'm using form based declarative security using mysql database.
After the user logged in, I want to display different selections on the screen
depending on the role the user has using jsp or servlet.
I can get the username using request.getRemoteUser(), but is there any way
that I can get user roles from a pre-defined variables or functions?
Or should I have to query the database again to know the role of the user ?
Or is there any way that I can set it up ?
Thank you for your help.
Try using org.jboss.security.plugins.JaasSecurityManager.
Amit.