I desperately need help with a problem I'm having using struts tiles. I have a menu with seven options in a file called 'menu.jsp'. This menu appears on the side of every page throughout my application. However, I now want to be able to change the colour of the text for whatever option is currently selected. I've tried using 'onclick' to change the colour of the text for the selected option but because the original colours are defined in 'menu.jsp', once the page reloads the original menu tile is displayed again (ie with no colour changes). I am trying to avoid writing a seperate menu tile for each menu option selected but can't see any other way round this problem. Am I trying to do the impossible?
Any help is appreciated. I'd like to know if anyone else has found a way around this.
Hold that thought. Tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Java