aspose file tools*
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
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: 34

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
Frame problem
JSP and XML
Devnagari characters
JSP and XML
Drop-down menus with custom tags in JSP