RE: On the fly menu configuration ?
"Pingili, Madhupal" <[email protected]>
| Newsgroups | gmane.comp.java.struts-menu.user |
|---|---|
| Message-ID | <[email protected]> |
If "on the fly" means, keeping menus in the request/session scope, then yes, you can generate menus and stick them in request/session using MenuRepository. e.g. //Create User Menu Repository, stuff it and keep it in session scope. MenuRepository mrp = (MenuRepository) servlet.getServletContext().getAttribute(MenuRepository.MENU_REPOSITORY_KEY) ; MenuRepository userMenuRep = AppUtils.createUserMenuRepository(userMenusSorted,mrp); session.setAttribute(MenuRepository.MENU_REPOSITORY_KEY, userMenuRep); //End of User Menu Repository creation. Struts-menu will pick it up and display only those menus. Reddy Pingili > -----Original Message----- > From: Jean-Baptiste Lievremont [SMTP:[email protected]] > Sent: Thursday, April 01, 2004 11:45 AM > To: struts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > Subject: [struts-menu] On the fly menu configuration ? > > Hi, > > Is it possible to pass an URL as a parameter to the <menu:useMenu/> tag > in order to define menus on the fly, for example the output of an XSL > transformation ? > > I want to be able to generate menus on the fly, actually I have an > application with several users and each has a custom mutable menu. So > the menu configuration file has to be generated on the fly from an XML > file. > > Thanks for your answears :) > > -- > | Jean-Baptiste Lièvremont | > | E-mail : [email protected] | > | [email protected] | > | Tel : (+33)6.14.85.19.96 | > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > _______________________________________________ > struts-menu-user mailing list > struts-menu-user-TtF/[email protected] > https://lists.sf.net/lists/listinfo/struts-menu-user ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click