Re: On the fly menu configuration ?
Jean-Baptiste Lievremont <[email protected]>
| Newsgroups | gmane.comp.java.struts-menu.user |
|---|---|
| Organization | EADS |
| Message-ID | <[email protected]> |
Pingili, Madhupal wrote: >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); > > What is userMenusSorted in this line ? Also where can I find the AppUtils class ? It is nowhere in the struts-menu API. >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 > > -- | 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