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 _______________________________________________ struts-menu-user mailing list [EMAIL PROTECTED] https://lists.sf.net/lists/listinfo/struts-menu-user

Reply via email to