• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

facility of adding menus and submenus in Struts in CMS

 
andrew ronchi
Ranch Hand
Posts: 48
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 299
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic