Save This Page
Home » xwork-2.1.5 » com.opensymphony » xwork2 » [javadoc | source]
com.opensymphony.xwork2
public class: ActionSupport [javadoc | source]
java.lang.Object
   com.opensymphony.xwork2.ActionSupport

All Implemented Interfaces:
    Validateable, Action, TextProvider, ValidationAware, Serializable, LocaleProvider

Provides a default implementation for the most common actions. See the documentation for all the interfaces this class implements for more detailed information.
Field Summary
protected static  Logger LOG     
Method from com.opensymphony.xwork2.ActionSupport Summary:
addActionError,   addActionMessage,   addFieldError,   clearActionErrors,   clearErrors,   clearErrorsAndMessages,   clearFieldErrors,   clearMessages,   clone,   doDefault,   execute,   getActionErrors,   getActionMessages,   getErrorMessages,   getErrors,   getFieldErrors,   getLocale,   getText,   getText,   getText,   getText,   getText,   getText,   getText,   getText,   getText,   getTexts,   getTexts,   hasActionErrors,   hasActionMessages,   hasErrors,   hasFieldErrors,   hasKey,   input,   pause,   setActionErrors,   setActionMessages,   setFieldErrors,   validate
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.opensymphony.xwork2.ActionSupport Detail:
 public  void addActionError(String anErrorMessage) 
 public  void addActionMessage(String aMessage) 
 public  void addFieldError(String fieldName,
    String errorMessage) 
 public  void clearActionErrors() 
    Clears action errors. Useful for Continuations and other situations where you might want to clear parts of the state on the same action.
 public  void clearErrors() 
    Clears all errors. Useful for Continuations and other situations where you might want to clear parts of the state on the same action.
 public  void clearErrorsAndMessages() 
    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.
 public  void clearFieldErrors() 
    Clears field errors. Useful for Continuations and other situations where you might want to clear parts of the state on the same action.
 public  void clearMessages() 
    Clears messages. Useful for Continuations and other situations where you might want to clear parts of the state on the same action.
 public Object clone() throws CloneNotSupportedException 
 public String doDefault() throws Exception 
 public String execute() throws Exception 
 public Collection<String> getActionErrors() 
 public Collection<String> getActionMessages() 
 public Collection<String> getErrorMessages() 
Deprecated! Use - #getActionErrors() .

 public Map<String> getErrors() 
Deprecated! Use - #getFieldErrors() .

 public Map<String> getFieldErrors() 
 public Locale getLocale() 
 public String getText(String aTextName) 
 public String getText(String aTextName,
    String defaultValue) 
 public String getText(String aTextName,
    List<Object> args) 
 public String getText(String key,
    String[] args) 
 public String getText(String aTextName,
    String defaultValue,
    String obj) 
 public String getText(String aTextName,
    String defaultValue,
    List<Object> args) 
 public String getText(String key,
    String defaultValue,
    String[] args) 
 public String getText(String key,
    String defaultValue,
    List<Object> args,
    ValueStack stack) 
 public String getText(String key,
    String defaultValue,
    String[] args,
    ValueStack 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 String input() throws Exception 
 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 #SUCCESS , #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 #execute() method.

 public  void setActionErrors(Collection<String> errorMessages) 
 public  void setActionMessages(Collection<String> messages) 
 public  void setFieldErrors(Map<String> errorMap) 
 public  void validate() 
    A default implementation that validates nothing. Subclasses should override this method to provide validations.