Home » Struts-1.3.10 » org.apache.struts » chain » [javadoc | source]
org.apache.struts.chain
abstract public class: AbstractPopulateActionForm [javadoc | source]
java.lang.Object
   org.apache.struts.chain.AbstractPopulateActionForm

All Implemented Interfaces:
    org.apache.commons.chain.Command

Direct Known Subclasses:
    PopulateActionForm

Populate the form bean (if any) for this request.

Method from org.apache.struts.chain.AbstractPopulateActionForm Summary:
execute,   getActionConfigKey,   getActionFormKey,   getCancelKey,   handleCancel,   populate,   reset,   setActionConfigKey,   setActionFormKey,   setCancelKey
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.struts.chain.AbstractPopulateActionForm Detail:
 public boolean execute(Context context) throws Exception 

    Populate the form bean (if any) for this request.

 public String getActionConfigKey() 

    Return the context attribute key under which the ActionConfig for the currently selected application action is stored.

 public String getActionFormKey() 

    Return the context attribute key under which the ActionForm for the currently selected application action is stored.

 public String getCancelKey() 

    Return the context attribute key under which the cancellation flag for this request is stored.

 protected  void handleCancel(Context context,
    ActionConfig actionConfig,
    ActionForm actionForm) throws Exception 
 protected  void populate(Context context,
    ActionConfig actionConfig,
    ActionForm actionForm) throws Exception 

    Base implementation assumes that the Context can be cast to WebContext and copies the parameter values from the context to the ActionForm.

    Note that this implementation does not handle "file uploads" because as far as I know there is no API for handling that without committing to servlets -- in a servlet environment, use org.apache.struts.chain.servlet.PopulateActionForm.

 abstract protected  void reset(Context context,
    ActionConfig actionConfig,
    ActionForm actionForm)

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

 public  void setActionConfigKey(String actionConfigKey) 

    Set the context attribute key under which the ActionConfig for the currently selected application action is stored.

 public  void setActionFormKey(String actionFormKey) 

    Set the context attribute key under which the ActionForm for the currently selected application action is stored.

 public  void setCancelKey(String cancelKey) 

    Set the context attribute key under which the cancellation flag for this request is stored.