Roles and Query Strings
Brian Rosenthal <uublr-/[email protected]>
| Newsgroups | gmane.comp.java.struts-menu.user |
|---|---|
| Message-ID | <[email protected]> |
Hello. I'm brand new to the list. Scott Scott Sayles suggested I join and ask this question here: I have two questions regarding Struts-Menu, a SourceForge project that's now been decoupled from Struts itself. The API docs seem to indicate that FGM played a part in its creation, so I thought it would be appropriate to ask them here. I tried to research these issues on the project's web site, but had no luck. Even tried to "Submit an issue" but got a 404. 1) Following the code in the examples is pretty straightforward. I'm trying to hide menu items based on roles, which is implemented in a very straightforward way. I have a ListItemMenu Displayer which behaves as expected. When I add permissions="rolesAdapter" to my <menu:useMenuDisplayer> tag and update menu-config.xml with a roles="bigboss," only authenticated users of type bigboss can see the menu item. Here's the problem. When I switch my useMenuDisplayer to the coolmenu (which is pretty cool, btw) the behavior breaks. Non-bigbosses see no menu at all. I haven't changed anything else and yes, I have added a CoolMenuDisplayer Displayer to menu-config.xml with the proper name. 2) I have several MenuItems that are unusable. The value for the page attribute in these MenuItems contain query strings with name/value pairs. page="/myfile.html?fname=brian" Apparently, an equals sign is not accepted. I tried overriding this using page="!<[PCDATA[/myfile.html?fname=brian]]>" but no luck. I did find a similar problem online, but no fix. http://www.mail-archive.com/struts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org/msg00072.html Can anyone on this list offer some suggestions, or even point me in the right direction? Thanks, -BR --------------------------------- Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less.