• Post Reply Bookmark Topic Watch Topic
  • New Topic

changing themes dynamically for jsps using struts and css

 
srikanth Thandra
Ranch Hand
Posts: 45
  • 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: 2907
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 !
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!