org.apache.struts2.views.velocity.template

## Class VelocityTemplateEngine

- java.lang.Object
- - org.apache.struts2.components.template.BaseTemplateEngine
  - - org.apache.struts2.views.velocity.template.VelocityTemplateEngine

- All Implemented Interfaces:
    TemplateEngine

      public class VelocityTemplateEngine
      extends BaseTemplateEngine

  Velocity based template engine.

- - ### Field Summary

    - ### Fields inherited from class org.apache.struts2.components.template.BaseTemplateEngine

      `DEFAULT_THEME_PROPERTIES_FILE_NAME`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `VelocityTemplateEngine()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected String` | `getSuffix()`
    `void` | `renderTemplate(TemplateRenderingContext templateContext)`
    `void` | `setVelocityManager(VelocityManager mgr)` Deprecated. since 6.4.0
    `void` | `setVelocityManager(VelocityManagerInterface mgr)`

    - ### Methods inherited from class org.apache.struts2.components.template.BaseTemplateEngine

      `getFinalTemplateName, getThemePropertiesFileName, getThemeProps`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### VelocityTemplateEngine

          public VelocityTemplateEngine()

  - ### Method Detail

    - #### setVelocityManager

          public void setVelocityManager(VelocityManagerInterface mgr)

    - #### setVelocityManager

          @Deprecated
          public void setVelocityManager(VelocityManager mgr)

      Deprecated. since 6.4.0

    - #### renderTemplate

          public void renderTemplate(TemplateRenderingContext templateContext)
                              throws Exception

      Throws:
        `Exception`

    - #### getSuffix

          protected String getSuffix()

      Specified by:
        `getSuffix` in class `BaseTemplateEngine`

Copyright © 2000–2025 Apache Software Foundation. All rights reserved.