FreeMarker Result
Renders a view using the Freemarker template engine. The FreemarkarManager class configures the template loaders
so that the template location can be either
- relative to the web root folder, e.g.:
/WEB-INF/views/home.ftl - a classpath resource, e.g.:
/com/company/web/views/home.ftl
Also see Freemarker Support.
Parameters
location(default) - the location of the template to process.parse- true by default. If set to false, the location param will not be parsed for expressions.contentType- defaults totext/htmlunless specified.writeIfCompleted-falseby default, write to stream only if there isn’t any error processing the template. Settingtemplate_exception_handler=rethrowinfreemarker.propertieswill have the same effect.
Examples
<result name="success" type="freemarker">foo.ftl</result>