Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Chain Result is a result type that invokes an action with its own interceptor stack and result. This allows an action to forward requests to a target action, while propagating the state of the source action. Below is a simple an example of how to define this sequence.

Wiki Markup
{snippet:id=example|lang=xml|javadoc=true|url=com.opensymphony.xwork.ActionChainResult}
Code Block
xmlxml

<!-- simple chain example to an action in same namespace ->
<result name="success" type="chain">
    <param name="actionName">Bar</param>
</result>

<!- example of chaining to an action in a different namespace/package -->
<result name="success" type="chain">
	<param name="actionName">viewFoo</param>
	<param name="namespace">/foo</param>
</result>	

Another action in the same namespace (or the default "" namespace) can be executed after this action (see Configuration). An optional "namespace" parameter may also be added to specify an action in a different namespace.

...