There's another example of creating a menu on-the-fly in the sample app:

http://raibledesigns.com/struts-menu/dynamicMenu.jsp

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Jean-Baptiste Lievremont
> Sent: Friday, April 02, 2004 3:14 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [struts-menu] On the fly menu configuration ?
> 
> 
> 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Ěk
> _______________________________________________
> struts-menu-user mailing list
> [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
_______________________________________________
struts-menu-user mailing list
[EMAIL PROTECTED]
https://lists.sf.net/lists/listinfo/struts-menu-user

Reply via email to