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,
nav29Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

quincydudeCommented:
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...
0
nav29Author Commented:
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.
0
quincydudeCommented:
Hard coding means you write the code directly on the page and it cannot be changed dynamically. As you should know the hierarchy of your site structure.
If you are using struts, you may try to set a session variable (array for example) about the menu. So upon calling a page's action servlet, you change this variable 's content regarding which page you are visiting and so you can generate the menu using this variable at runtime.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java EE

From novice to tech pro — start learning today.