Versions Compared

Key

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

...

With redirect-prefix, instead of executing baz action's execute() method (by default it it isn't overriden in xwork.xml to be something else), it will get redirected to, in this case to www.google.com. Internall

// TODO: will finnish remaining latter (smile)

. Internally it uses ServletRedirectResult to do the task.

+ REDIRECT ACTION PREFIX +

Code Block
<ww:form name="baz">
    <ww:textfield label="Enter your name" name="person.name"/>
    <ww:submit value="Create person"/>
    <ww:submit name="redirect-action:dashboard" value="Cancel"/>
</ww:form>

With redirect-action-prefix, instead of executing baz action's execute() method (by default it isn't overriden in xwork.xml to be something else), it will get redirected to, in this case 'dashboard.action'. Internally it uses ServletRedirectResult to do the task and read off the extension from the webwork.properties.

ActionMapperFactory

You can define your own ActionMapper by configuring the ActionMapperFactory:

...