Wiki Markup |
---|
{snippet:id=description|javadoc=true|url=org.apache.struts2.dispatcher.VelocityResult} |
Parameters
Wiki Markup |
---|
{snippet:id=params|javadoc=true|url=org.apache.struts2.dispatcher.VelocityResult} |
Examples
Wiki Markup |
---|
{snippet:id=example|lang=xml|javadoc=true|url=org.apache.struts2.dispatcher.VelocityResult} |
Velocity
This result mocks a JSP execution environment and then displays a Velocity template that will be streamed directly to the servlet output. Also see Resources Available to Velocity Views
Parameters | Required | Description |
---|---|---|
location | yes | the location to go to after execution |
parse | no | true by default. If set to false, the location param will not be parsed for Ognl expressions |
Code Block | ||
---|---|---|
xml | xml |
<result name="success" type="velocity">
<param name="location">foo.vm</param>
</result>
|