Re: permissions="rolesAdapter" not working in Struts Menu 2.4
"Matt Raible" <[email protected]> Sun, 9 Jul 2006 22:48:32 -0600
| Newsgroups | gmane.comp.java.struts-menu.user |
|---|---|
| Message-ID | <[email protected]> |
If you use the example application, does it work? Matt On 7/9/06, Prashant Kafley <shaank7611-/[email protected]> wrote: > > Hello Matt, > > I have recently been using struts-menu plugin and jar into my existing > struts app. > > On my custom jsp, i defined this > > <menu:useMenuDisplayer name="CoolMenu" permissions="rolesAdapter" > bundle="org.apache.struts.action.MESSAGE" > > <menu:displayMenu name="ToDoListMenuFile"/> > <menu:displayMenu name="ToDoListMenuEdit"/> > <menu:displayMenu name="ToDoListMenuAccount"/> > > </menu:useMenuDisplayer> > > On my menu-config.xml, I defined roles=admin only for ToDoListMenuAccount > > <Menu name="ToDoListMenuAccount" title="ACCOUNTS" roles="admin"> > <Item ..... /> > <Item ....... /> > </Menu> > > After i log in, no menu item appears. when I remove > permissions="rolesAdapter" from jsp, i will see all the menu including the > roles=Admin after i log in. > > I am using Tomcat 5.5 and using form authentication using contained based > j_security_check action. The login form authenticates just fine, but after > logging in, I don't see the menu. I tried using example like the one for > /secure.jsp. for rolesMenu.jsp and it still does not work for that either. > Can you help me brother? > > Shaan > > > ________________________________ > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates > starting at 1ยข/min. > > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642