| java.lang.Object com.opensymphony.xwork.ActionSupport
All known Subclasses: com.opensymphony.webwork.config_browser.ListValidatorsAction, com.opensymphony.webwork.config_browser.ActionNamesAction, com.opensymphony.webwork.views.freemarker.TestAction, com.opensymphony.webwork.dispatcher.DefaultActionSupport, com.opensymphony.webwork.TestAction, com.opensymphony.webwork.ExecutionCountTestAction, com.opensymphony.webwork.views.jsp.ui.TestAction1, com.opensymphony.webwork.components.AbstractRichtexteditorConnector,
Field Summary | |
final protected static transient Log | LOG |
Method Summary | |
public void | addActionError(String anErrorMessage) | public void | addActionMessage(String aMessage) | public void | addFieldError(String fieldName, String errorMessage) | public void | clearErrorsAndMessages() Clears all errors and messages. | public Object | clone() | public String | doDefault() | public String | doInput() | public String | execute() A default implementation that does nothing an returns "success". | public Collection | getActionErrors() | public Collection | getActionMessages() | public Collection | getErrorMessages() | public Map | getErrors() | public Map | getFieldErrors() | public Locale | getLocale() | public String | getText(String aTextName) | public String | getText(String aTextName, String defaultValue) | public String | getText(String aTextName, String defaultValue, String obj) | public String | getText(String aTextName, List args) | public String | getText(String key, String[] args) | public String | getText(String aTextName, String defaultValue, List args) | public String | getText(String key, String defaultValue, String[] args) | public String | getText(String key, String defaultValue, List args, OgnlValueStack stack) | public String | getText(String key, String defaultValue, String[] args, OgnlValueStack stack) | public ResourceBundle | getTexts() | public ResourceBundle | getTexts(String aBundleName) | public boolean | hasActionErrors() | public boolean | hasActionMessages() | public boolean | hasErrors() | public boolean | hasFieldErrors() | public boolean | hasKey(String key) | public void | pause(String result)
Stops the action invocation immediately (by throwing a PauseException) and causes the action invocation to return
the specified result, such as
ActionSupport.SUCCESS ,
ActionSupport.INPUT , etc. | public void | setActionErrors(Collection errorMessages) | public void | setActionMessages(Collection messages) | public void | setFieldErrors(Map errorMap) | public void | validate() A default implementation that validates nothing. |
LOG | final protected static transient Log LOG(Code) | | |
addActionError | public void addActionError(String anErrorMessage)(Code) | | |
addActionMessage | public void addActionMessage(String aMessage)(Code) | | |
clearErrorsAndMessages | public void clearErrorsAndMessages()(Code) | | Clears all errors and messages. Useful for Continuations and other situations
where you might want to clear parts of the state on the same action.
|
getFieldErrors | public Map getFieldErrors()(Code) | | |
hasActionErrors | public boolean hasActionErrors()(Code) | | |
hasActionMessages | public boolean hasActionMessages()(Code) | | |
hasErrors | public boolean hasErrors()(Code) | | |
hasFieldErrors | public boolean hasFieldErrors()(Code) | | |
pause | public void pause(String result)(Code) | |
Stops the action invocation immediately (by throwing a PauseException) and causes the action invocation to return
the specified result, such as
ActionSupport.SUCCESS ,
ActionSupport.INPUT , etc.
The next time this action is invoked (and using the same continuation ID), the method will resume immediately
after where this method was called, with the entire call stack in the execute method restored.
Note: this method can only be called within the
ActionSupport.execute() method.
Parameters: result - the result to return - the same type of return value in the ActionSupport.execute() method. |
setFieldErrors | public void setFieldErrors(Map errorMap)(Code) | | |
validate | public void validate()(Code) | | A default implementation that validates nothing.
Subclasses should override this method to provide validations.
|
|
|