Class TemplateEngineManager
java.lang.Object
org.apache.struts2.components.template.TemplateEngineManager
The TemplateEngineManager will return a template engine for the template
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetTemplateEngine(Template template, String templateTypeOverride) Gets the TemplateEngine for the template name.voidregisterTemplateEngine(String templateExtension, TemplateEngine templateEngine) Registers the given template engine.voidsetContainer(Container container) voidsetDefaultTemplateType(String type) 
- 
Field Details- 
DEFAULT_TEMPLATE_TYPEThe default template extension isftl.- See Also:
 
 
- 
- 
Constructor Details- 
TemplateEngineManagerpublic TemplateEngineManager()
 
- 
- 
Method Details- 
setDefaultTemplateType
- 
setContainer
- 
registerTemplateEngineRegisters the given template engine. Will add the engine to the existing list of known engines. - Parameters:
- templateExtension- filename extension (eg. .jsp, .ftl, .vm).
- templateEngine- the engine.
 
- 
getTemplateEngineGets the TemplateEngine for the template name. If the template name has an extension (for instance foo.jsp), then this extension will be used to look up the appropriate TemplateEngine. If it does not have an extension, it will look for a Configuration setting "struts.ui.templateSuffix" for the extension, and if that is not set, it will fall back to "ftl" as the default. - Parameters:
- template- Template used to determine which TemplateEngine to return
- templateTypeOverride- Overrides the default template type
- Returns:
- the engine.
 
 
-