The default theme is passed to the page through a theme
variable. To change the theme for a page, use the set
tag to change the theme
variable. The variable can be changed using a static value or property.
Static Value
Change to the "simple" theme.
<s:set name="theme" value="'simple'" scope="page" />
Property
Change to the theme name indicated by the myTheme
property.
<s:set name="theme" value="%{myTheme}" scope="page" />
See also Selecting Themes
3 Comments
Fabian Kneissl
Note that the first example does not work.
Instead it should be (note the extra colons around the value):
See also this issue or this page
Fabian Kneissl
This probably also affects http://cwiki.apache.org/confluence/display/WW/Can+I+change+templateDir+on+a+per-page+basis and http://cwiki.apache.org/confluence/display/WW/Can+I+change+templateSuffix+on+a+per-page+basis
Dave Newton
Fixed, although I think you meant quotes.