This page last changed on Dec 14, 2004 by cameronbraid.

FreeMarker

Parameters Required Description
location yes the location of the template to process
parse no true by default. If set to false, the location param will not be parsed for Ognl expressions
contentType no defaults to "text/html" unless specified
<result name="success" type="freemarker">foo.ftl</result>

Location of the Template

The FreemarkarManager class configures the template loaders so that the template location can be either
  • relative to the web root folder. eg /WEB-INF/views/home.ftl
  • a classpath resuorce. eg com/company/web/views/home.ftl
Document generated by Confluence on Dec 14, 2004 16:36