Hello all, has anyone ever used Struts Menu together wtih Acegi? Following what's explained in this link http://struts-menu.sourceforge.net/security.html
i would like to implement my own PermissionAdapter that uses Acegi in order to load dynamically menu items for my application.. here is what docs says .....Struts Menu comes with a single concrete implementation of the PermissionsAdapter, called RolesPermissionsAdapter. This adapter maps the user's security roles as defined in the application/appserver configuration against a list of permitted roles defined for each menu/menu item in menu-config.xml.... Since i already have the possibilty to specify permissions in my database using acegi's database tables, i was wondering if the correct path to follow was to check the user table to see the role of the user... the problem is how do i get to the roles (such as ROLE_SUPERVISOR) defined in user table? by browsing docs, i found out that those ROLE_X are available via SecurityConfig.getAttribute, but i don't know how to get to SecurityConfig from Authentication... anyone could help? thanx in advance and regards marco ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Home: http://acegisecurity.sourceforge.net Acegisecurity-developer mailing list Acegisecurity-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer