This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Struts and the fly likes Dynamically loading Menus in JSP after Server Startup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Dynamically loading Menus in JSP after Server Startup" Watch "Dynamically loading Menus in JSP after Server Startup" New topic
Author

Dynamically loading Menus in JSP after Server Startup

Ramesh Jothimani
Ranch Hand

Joined: May 05, 2011
Posts: 70

I have names of the menu's in Database . I need to query the names of menus dynamically after server startup n Homepage . I am using hibernate & struts for my application. Please suggest me a idea to achieve the same.
Yogesh Lonkar
Ranch Hand

Joined: Jul 17, 2012
Posts: 94

i am not sure it is good idea to store menu of navigation links in database. if you know use tiles it will be very much you full. you design a navigation of menu bar for page and then assign session attribute for use as admin or member or guest and according to that program your jsp page for displaying different menu as per session user


Learning some thing New Every Day
Ramesh Jothimani
Ranch Hand

Joined: May 05, 2011
Posts: 70

I am storing the navigation links in my DataBase for making the menus in my page dynamic . Incase if some one needs to add a new page / menu , it ll be more easier I feel. And Thanks a lot for suggesting Tiles . I was not aware of Tiles framework earlier and I found that it might be easier to achieve what I have mentioned with Tiles by means of Templates .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamically loading Menus in JSP after Server Startup