| com.opensymphony.xwork.Action
All known Subclasses: com.opensymphony.webwork.util.SubsetIteratorFilter, com.opensymphony.webwork.util.AppendIteratorFilter, com.opensymphony.webwork.util.MergeIteratorFilter, com.opensymphony.webwork.interceptor.ExecuteAndWaitDelayAction, com.opensymphony.xwork.ActionSupport, com.opensymphony.webwork.util.SortIteratorFilter, com.opensymphony.webwork.util.IteratorGenerator, com.opensymphony.webwork.portlet.dispatcher.DirectRenderFromEventAction,
Action | public interface Action (Code) | | All actions may implement this interface, which exposes
the execute() method. However, as of XWork 1.1, this is
not required and is only here to assist users. You are
free to create POJOs that honor the same contract
defined by this interface without actually implementing
the interface.
|
Field Summary | |
final public static String | ERROR The action execution was a failure. | final public static String | INPUT The action execution require more input
in order to succeed.
This result is typically used if a form
handling action has been executed so as
to provide defaults for a form. | final public static String | LOGIN The action could not execute, since the
user most was not logged in. | final public static String | NONE The action execution was successful but do not
show a view. | final public static String | SUCCESS The action execution was successful. |
Method Summary | |
public String | execute() Where the logic of the action is executed. |
ERROR | final public static String ERROR(Code) | | The action execution was a failure.
Show an error view, possibly asking the
user to retry entering data.
|
INPUT | final public static String INPUT(Code) | | The action execution require more input
in order to succeed.
This result is typically used if a form
handling action has been executed so as
to provide defaults for a form. The
form associated with the handler should be
shown to the end user.
This result is also used if the given input
params are invalid, meaning the user
should try providing input again.
|
LOGIN | final public static String LOGIN(Code) | | The action could not execute, since the
user most was not logged in. The login view
should be shown.
|
NONE | final public static String NONE(Code) | | The action execution was successful but do not
show a view. This is useful for actions that are
handling the view in another fashion like redirect.
|
SUCCESS | final public static String SUCCESS(Code) | | The action execution was successful. Show result
view to the end user.
|
execute | public String execute() throws Exception(Code) | | Where the logic of the action is executed.
a string representing the logical result of the execution.See constants in this interface for a list of standard result values. throws: Exception - thrown if a system level exception occurs.Application level exceptions should be handled by returningan error value, such as Action.ERROR. |
|
|