Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

changing themes dynamically for jsps using struts and css

 
srikanth Thandra
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Dear All,

Is it possible to change dynamically, the color themes for all input fields, backgrounds, labels etc.. using struts and css in jsp.

can i have some sample working examples?
 
Sagar Rohankar
Ranch Hand
Posts: 2906
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I haven't done this before, but I might followed this approach:
1. Put a string object in session which hold the CSS path.
2. In all JSP header, write CSS link tag something like this

Here, userCss is session variable.

Hope this helps !
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic