Versions Compared

Key

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

...

(warning) In most cases if an action returns an unrecognized result name this would be a programming error and should be fixed.

Note
titleMultiple names as from Struts 2.5

It is possible to define multiple names for the same result

Code Block
languagexml
<action name="save">
    <result>success.jsp</result>
    <result name="error, input">input-form.jsp</result>
</action>

Such functionality was added in STruts 2.5

 

Global Results

Most often, results are nested with the action element. But some results apply to multiple actions. In a secure application, a client might try to access a page without being authorized, and many actions may need access to a "logon" result.

...