org.apache.struts2.components.template
类 VelocityTemplateEngine
java.lang.Object
org.apache.struts2.components.template.BaseTemplateEngine
org.apache.struts2.components.template.VelocityTemplateEngine
- 所有已实现的接口:
- TemplateEngine
public class VelocityTemplateEngine
- extends BaseTemplateEngine
Velocity based template engine.
VelocityTemplateEngine
public VelocityTemplateEngine()
setVelocityManager
public void setVelocityManager(VelocityManager mgr)
renderTemplate
public void renderTemplate(TemplateRenderingContext templateContext)
throws Exception
- 从接口
TemplateEngine
复制的描述
- Renders the template
- 参数:
templateContext
- context for the given template.
- 抛出:
Exception
- is thrown if there is a failure when rendering.