Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Changing the look of a fixed tile?

 
Niall
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic