The easiest way I've found to do this is to write a ServletFilter that wraps the HttpServletRequest with a class that implements the isUserInRole method based on your database roles from an object you populated and placed in the Session.
Josh On 5/1/07, Flemming Seerup <[EMAIL PROTECTED]> wrote:
I would like to populate the user roles from a database during login, but have not found any examples how to do so in Struts2. I have found an example how to use RolesInterceptor to secure access to specific actions, but no hints on how to populate the roles. /Flemming ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]