Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Templates ae are loaded first by searching the application and then by searching the classpath. If a template needs to be overridden, an edited copy can be placed in the application, so that is found first.

...

Templates are loaded based the template directory and theme name (see Selecting Themes). The template directory is defined by the struts.ui.templateDir property in struts.properties (defaults to template). If a tag is using the ajax xhtml theme, the following two locations will be searched (in this order):

In the application

/template/ajaxxhtml/template.ftl

In the classpath

/template/ajaxxhtml/template.ftl

(warning) For performance reasons, you may want to prefer the first location, although the second one is more flexible. See Performance Tuning for a discussion on this topic.

...