File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamically loading Menus in JSP after Server Startup

 
Ramesh Jothimani
Ranch Hand
Posts: 70
Android Eclipse IDE Hibernate
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 94
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ramesh Jothimani
Ranch Hand
Posts: 70
Android Eclipse IDE Hibernate
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic