Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
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.

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

<result name="success" type="velocity">
    <param name="location">foo.vm</param>
</result>