I have a page with left side navigation menu, in this menu we are displaying some categories from the database, each one is linking to corresponding page. here When we clink on any link, that name with the link should be changed. that means the user can identify that he is in that particular category's page.
If you see this link selected category with color change, you can get the idea what I mean to say. In this page the "kids" is selected (forget about the underneath 3 subcategories), here I want to get the idea how dynamically changed the "kids" color when we click on this.
Well you would have to add the class="current" to that link.
Build functionality in your Java code that generates the menu and spit out what you need when you are on that page.
Joined: Mar 19, 2008
What I'm thinking is, I will create a java POJO class with (name and className fields) and I will create the new object for each field( Craft, Kids, etc) in the list returned from db. Ex: - in the Action class
Then I use this listForJSP list object to display the categories with the corresponding style class like