This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Struts and the fly likes changing themes dynamically for jsps using struts and css Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "changing themes dynamically for jsps using struts and css" Watch "changing themes dynamically for jsps using struts and css" New topic
Author

changing themes dynamically for jsps using struts and css

srikanth Thandra
Ranch Hand

Joined: Mar 04, 2009
Posts: 42

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?


Thanx in advance,
Srikanth
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2904
    
    1

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 !


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: changing themes dynamically for jsps using struts and css
 
jQuery in Action, 3rd edition