• Post Reply Bookmark Topic Watch Topic
  • New Topic

changing themes dynamically for jsps using struts and css  RSS feed

 
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 !
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!