Class PopulateActionForm

All Implemented Interfaces:
org.apache.commons.chain.Command<ActionContext>, ActionCommand

public class PopulateActionForm extends AbstractPopulateActionForm

Populate the form bean (if any) for this request. Sets the multipart class from the action config in the request attributes.

Version:
$Rev$ $Date: 2005-11-12 13:01:44 -0500 (Sat, 12 Nov 2005) $
  • Constructor Details

    • PopulateActionForm

      public PopulateActionForm()
  • Method Details

    • populate

      protected void populate(ActionContext context, ActionConfig actionConfig, ActionForm actionForm) throws Exception
      Description copied from class: AbstractPopulateActionForm

      Populate the given ActionForm with request parameter values, taking into account any prefix/suffix values configured on the given ActionConfig.

      Specified by:
      populate in class AbstractPopulateActionForm
      Parameters:
      context - The ActionContext we are processing
      actionConfig - The ActionConfig we are processing
      actionForm - The ActionForm we are processing
      Throws:
      Exception - On an unexpected error
    • reset

      protected void reset(ActionContext context, ActionConfig actionConfig, ActionForm actionForm)
      Description copied from class: AbstractPopulateActionForm

      Call the reset() method on the specified form bean.

      Specified by:
      reset in class AbstractPopulateActionForm
      Parameters:
      context - The context for this request
      actionConfig - The actionConfig for this request
      actionForm - The form bean for this request
    • isPopulate

      protected boolean isPopulate(ActionContext context, ActionConfig actionConfig)
      Determines whether an action form should be populated.
      Specified by:
      isPopulate in class AbstractPopulateActionForm
      Parameters:
      context - the ActionContext we are processing
      actionConfig - action config for current request
      Returns:
      true if action form should be populated
      Since:
      Struts 1.4
    • isReset

      protected boolean isReset(ActionContext context, ActionConfig actionConfig)
      Determines whether an action form should be reset.
      Specified by:
      isReset in class AbstractPopulateActionForm
      Parameters:
      context - the ActionContext we are processing
      actionConfig - action config for current request
      Returns:
      true if action form should be reset
      Since:
      Struts 1.4