This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes facility of adding menus and submenus in Struts in CMS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "facility of adding menus and submenus in Struts in CMS" Watch "facility of adding menus and submenus in Struts in CMS" New topic
Author

facility of adding menus and submenus in Struts in CMS

andrew ronchi
Ranch Hand

Joined: Nov 03, 2011
Posts: 38

i am developing a site in struts where i want to give a facility to add menus and submenus.
but i am not getting the exact structure for their table.
if its like..
menu_id | menu_text | parent_id

then how should i retrieve the data and display then on jsp page as menubar.
how can i come to know that which submenu is for which menu.
i want them in jsp code.
jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 296

Hi,

you must have the good DB design to fetch the menu from the database. Basic db design can be
Main menu:
menuid,menu name,menu description etc..
Submenu can be
submenuid,submenuname,submenu desc,submenu order(to display at which position),menuid as foreign key.

You also need to consider what else you are going to display with the menu like image,text,hyperlinks or other things.


Regards
Jatan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: facility of adding menus and submenus in Struts in CMS
 
Similar Threads
Drop-down menus with custom tags in JSP
Devnagari characters
JSP and XML
Frame problem
JSP and XML