Menu item activation in struts2+tiles project
Am building an application using struts2 and tiles. I have a top menu bar, which is common for all the pages, so i declared the menu in tiles. When a menu item is clicked, the respective menu item should be active(i.e. different color). But as i declared the menu item in tiles, the same menu is called for all the pages. Is there a way that i can still keep the menu in tiles and the respective menuitem is activated.
previously i had for each page as;
so when a menuitem is clicked, it goes to the corresponding page and in the menubar it is highlighted.
<li id="header_navigation-spon-[B]active[/B]"><a href="sponsors.html"></a></li>