Save This Page
Home » struts-2.0.11.2-src » org.apache » struts2 » components » template » [javadoc | source]
org.apache.struts2.components.template
public class: FreemarkerTemplateEngine [javadoc | source]
java.lang.Object
   org.apache.struts2.components.template.BaseTemplateEngine
      org.apache.struts2.components.template.FreemarkerTemplateEngine

All Implemented Interfaces:
    TemplateEngine

Freemarker based template engine.
Field Summary
static  Class bodyContent     
Fields inherited from org.apache.struts2.components.template.BaseTemplateEngine:
DEFAULT_THEME_PROPERTIES_FILE_NAME,  themeProps
Method from org.apache.struts2.components.template.FreemarkerTemplateEngine Summary:
addToCache,   addToMissingTemplateCache,   findInCache,   getSuffix,   isTemplateMissing,   renderTemplate,   setCacheTemplates,   setFreemarkerManager
Methods from org.apache.struts2.components.template.BaseTemplateEngine:
getFinalTemplateName,   getSuffix,   getThemePropertiesFileName,   getThemeProps
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.struts2.components.template.FreemarkerTemplateEngine Detail:
 protected  void addToCache(String templateName,
    Template template) 
 protected  void addToMissingTemplateCache(String templateName) 
 protected Template findInCache(String templateName) 
 protected String getSuffix() 
 protected boolean isTemplateMissing(String templateName) 
 public  void renderTemplate(TemplateRenderingContext templateContext) throws Exception 
 public  void setCacheTemplates(String cacheTemplates) 
    Enables or disables Struts caching of Freemarker templates. By default disabled. Set struts.freemarker.templatesCache=true to enable cache
 public  void setFreemarkerManager(FreemarkerManager mgr)