Versions Compared

Key

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

A result is a piece of code that is executed after your action has already completed and returned a value such as success or error. But webwork comes with most of the result you'll need, for example: such as "servlet dispatcher," used for JSPs, and Velocity as well as alternative results such as FreeMarker and Jasper Reports (in PDF, XML, and HTML).

Code Block
<action name="form03" class="lessons.Form03Action">
      <result name="success" type="dispatcher">page03-success.jsp</result>
      <result name="error" type="dispatcher">page03-error.jsp</result>
</action>

...