Apache Struts 2 Documentation > Home > Guides > Core Developers Guide > Result Types > Velocity Result |
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.
This result follows the same rules from StrutsResultSupport.
<result name="success" type="velocity"> <param name="location">foo.vm</param> </result>