Versions Compared

Key

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

...

Freemarker fails to properly cache templates when they are retrieved from the classpath. Copying them to the WEB_APP root allows Freemarker to cache them correctly. Freemarker looks at the last modified time of the template to determine if it needs to reload the templates. Resources retrieved from the classpath have no last modified time, so Freemarker will reload them on every request.

Warning
titleStruts 2.1 Only

Setting the property struts.freemarker.templatesCache to true will have the same effect as copying the templates under WEB_APP/templates. This property is set to false by default

(warning) When overriding a theme, copy all necessary templates to the theme directory.

...