org.apache.struts2.dispatcher

## Class DefaultActionSupport

- java.lang.Object
- - com.opensymphony.xwork2.ActionSupport
  - - org.apache.struts2.dispatcher.DefaultActionSupport

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

      public class DefaultActionSupport
      extends ActionSupport

  A simple action support class that sets properties to be able to serve
  See Also:
    Serialized Form

- - ### Field Summary

    - ### Fields inherited from class com.opensymphony.xwork2.ActionSupport

      `container`

    - ### Fields inherited from interface com.opensymphony.xwork2.Action

      `ERROR, INPUT, LOGIN, NONE, SUCCESS`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultActionSupport()` Constructor

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `execute()` A default implementation that does nothing an returns "success".
    `String` | `getSuccessResultValue()`
    `void` | `setSuccessResultValue(String successResultValue)`

    - ### Methods inherited from class com.opensymphony.xwork2.ActionSupport

      `addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getContainer, getFieldErrors, getFormatted, getLocale, getLocaleProvider, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate`

    - ### Methods inherited from class java.lang.Object

      `equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultActionSupport

          public DefaultActionSupport()

      Constructor

  - ### Method Detail

    - #### execute

          public String execute()
                         throws Exception

      Description copied from class: `ActionSupport`
      A default implementation that does nothing an returns "success".

      Subclasses should override this method to provide their business logic.

      See also `Action.execute()`.

      Specified by:
        `execute` in interface `Action`
      Overrides:
        `execute` in class `ActionSupport`
      Returns:
        returns `Action.SUCCESS`
      Throws:
        `Exception` - can be thrown by subclasses.

    - #### getSuccessResultValue

          public String getSuccessResultValue()

      Returns:
        Returns the successResultValue.

    - #### setSuccessResultValue

          public void setSuccessResultValue(String successResultValue)

      Parameters:
        `successResultValue` - The successResultValue to set.

Copyright © 2000–2022 Apache Software Foundation. All rights reserved.