Class AbstractFormDrivenActionSupport<F extends Form>

Type Parameters:
F - Form containing request parameters.
All Implemented Interfaces:
Action, ValidationAware, LocaleProvider, ModelDriven<F>, TextProvider, Validateable, Serializable, BrowserTabAware, BrowserTabAware2, FormDriven<F>, LoggingAware, ValidationAware2, Action, ServletRequestAware, ValidationAware, ModelDriven<F>, Validateable
Direct Known Subclasses:
AbstractFindBaseRecordListActionSupport, AbstractFindIdListActionSupport, AbstractFindIndexListActionSupport, AbstractFindListActionSupport, AbstractFindListMultiModeActionSupport, AbstractSaveListActionSupport

public abstract class AbstractFormDrivenActionSupport<F extends Form> extends AbstractActionSupport implements FormDriven<F>
Base class of Struts 2 Action for finding or updating based on form data, or otherwise respond to POST requests. Concrete subclasses are expected to use an interceptor stack like FormDrivenStack; see interceptor package.
See Also:
  • Constructor Details

    • AbstractFormDrivenActionSupport

      public AbstractFormDrivenActionSupport()
  • Method Details

    • makeForm

      protected abstract F makeForm()
      Returns a new instance of the form.
    • getForm

      protected F getForm()
    • setForm

      protected void setForm(F form)
    • formValidationFailed

      public boolean formValidationFailed()
      Description copied from interface: FormDriven
      Returns whether the user's request was rejected, such as form data itself is invalid, an update rejected by the back-end or zero query results with zero results not allowed. This is usually defined as the presence of any error messages.
      Specified by:
      formValidationFailed in interface FormDriven<F extends Form>
    • getModel

      public F getModel()
      Specified by:
      getModel in interface ModelDriven<F extends Form>
    • validate

      public void validate()
      Specified by:
      validate in interface Validateable
      Overrides:
      validate in class ActionSupport