Selecting Template Directory
Template directory can be selected using several different rules, in this order:
- The
templateDirattribute on the specific tag - The page-scoped attribute named
templateDir - The request-scoped attribute named
templateDir - The session-scoped attribute named
templateDir - The application-scoped attribute named
templateDir - The
struts.ui.templateDirscoped constant of the action’s package or one of its parents (since 7.5.0) - The
struts.ui.templateDirproperty instruts.xml(defaults to template)
Tips
- To change the template directory for the entire application, modify the
struts.xml - To change the template directory for all actions of a package, declare
<scoped-constant name="struts.ui.templateDir" value="admin-template"/>in that package (since 7.5.0)