Apache Struts 2 Documentation > Home > Guides > Core Developers Guide > Result Types > Velocity Result
Added by casey, last edited by Ted Husted on Sep 10, 2006  (view change)
Content pulled from external source. Click here to refresh.

Using the Servlet container's JspFactory, this result mocks a JSP execution environment and then displays a Velocity template that will be streamed directly to the servlet output.

Parameters

Content pulled from external source. Click here to refresh.

  • 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 Ognl expressions.

This result follows the same rules from StrutsResultSupport.

Examples

Content pulled from external source. Click here to refresh.
<result name="success" type="velocity">
  <param name="location">foo.vm</param>
</result>