THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
The @Result
annotation lives at the Action
class level and not the method level. This matches what is found in an XML-based Action
configuration. Do not be tempted to annotate your Action
's methods; it will not work.
...
@Result
Annotation Parameters
...
- name - Result name; default
Action.SUCCESS
- value - Value of result (result destination)
- type - Type of result; default
NullResult
. For example:NullResult.class
FreemarkerResult.class
PlainTextResult.class
VelocityResult.class
ServletDispatcherResult.class
ServletRedirectResult.class
ServletActionRedirectResult.class
- equivalent to theredirectAction
type in XML configTilesResult.class
- .. (for more result, please consult the API docs, and look for implementations of the XWork
Result
interface)
- params - An Array of the parameters in the form {key1, value1, key2, value2}
...
Map the "success" result (explicitly named) to a Tile definition named "/home.page".
...
@Results
– Defining Multiple Results
...