You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Current »

The default template directory is passed to the page through a templateDir variable. To change the template dirctory for a page, use the set tag to change the templateDir variable. The variable can be changed using a static value or property.

Static Value

Change to the "template" directory.

<s:set name="templateDir" value="'template'" scope="page" />

Property

Change to the theme name indicated by the myTemplateDir property.

<s:set name="theme" value="%{myTemplateDir}" scope="page" />

See also Template Loading

  • No labels