Versions Compared

Key

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

The Chain Result in WebWork provides the ability to compose multiple Actions together to execute in chain multiple actions into a defined sequence or workflow. This feature works by applying a Chain Result to source action, that needs its state propagated to target action. The code excerpt below show hos this can be done.

Code Block
xml
xml
<!-- 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>	

...