File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
 
Similar Threads
To learn Flex you start with scripting relative languages mxml, etc , or with learning the MENUes/FB
How to create list of Menu list Item dynamically
MouseOver on an entire Column in a table
Dynamic Menus
Dynamically generate select menus