Link to home
Start Free TrialLog in
Avatar of Bobby Sandhu
Bobby SandhuFlag for Canada

asked on

How to Create BreadCrumbs using Struts 1.1, Java and JSP

I would like to create BreadCrumb based on where which menu user clicks. For eg.
left side menu contains menu and sub menus like:
Home
Contact Us
Help
Administration
 - List Users
 - Add User

BreadCrumb should look like:
Home > Contact Us
or Home > Administration > Add User

I am using Struts 1.1, and JSP. I need to know how to create it..
Thanks in advance,
Avatar of quincydude
quincydude
Flag of Hong Kong image

Hi,
I think making this kind of menu is not related to the framework. JSP and struts have nothing to do with it.  You just need to put the site hierarchy in a db and generate the menu at runtime from these data. On the straight forward case is you hard coding the menu on each page...
Avatar of Bobby Sandhu

ASKER

I don't get it what you mean by hard coding the menu on each page....

I have one left_menu.jsp file that contains this menu and I am including this file in all other jsp pages. Please let me know how to do it without putting these items in db.
ASKER CERTIFIED SOLUTION
Avatar of quincydude
quincydude
Flag of Hong Kong image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial