Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Runtime Html Menu in Jsp Page

 
Naveen Sydney
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If u have to build a menu(HTML +Javascript) at runtime in a jsp page.how would u do it?
1)When a user logs in based on his profile (which is read from ldap) his menu option changes.
Right now we display the menu as <a href> links on the home page and its ugly as hell. I would like to change it to a dropdown menu on the header. Any ideas's
2)To complicate the problem different menu items have related search options.(right now displayed as a dropdown and input box next to the link on the hompage).If i were to replace the menu with a drop down how would i display the search options?
I do have some ideas, was wondering if anyone has done this before.
Cheers
syd
 
ersin eser
Ranch Hand
Posts: 1072
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Custom tags , using nested tags ( getParent,findAncestorWithClass) depending on parent( which you can tie it to user ) u can display menu.High Coupling is an issue ,use interfaces to limit coupling. Read Custom Tagl Libraries related book ( Manning Press has one )
 
Naveen Sydney
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i do use nested custom tags to display tabular data which is retrieved from database and held in session as java objects.
But here if i take the same approach
1) Heavy Server-side functionality,hence user has to wait for the web page to hit the server to make the menu dynamic.
2) The menu will look like a list of <td> in a table rather than a list of links i have.Will not be able to achieve a dhtml menu look.
regards
syd
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic