aspose file tools*
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
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: 2902
    
    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]
 
jQuery in Action, 2nd edition
 
subject: changing themes dynamically for jsps using struts and css