org.apache.struts.chain.servlet
Class PopulateActionForm

java.lang.Object
  extended byorg.apache.struts.chain.AbstractPopulateActionForm
      extended byorg.apache.struts.chain.servlet.PopulateActionForm
All Implemented Interfaces:
org.apache.commons.chain.Command

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: 54933 $ $Date: 2004-10-16 18:04:52 +0100 (Sat, 16 Oct 2004) $

Field Summary
private static org.apache.commons.logging.Log log
           
 
Fields inherited from class org.apache.struts.chain.AbstractPopulateActionForm
 
Constructor Summary
PopulateActionForm()
           
 
Method Summary
protected  void populate(org.apache.commons.chain.Context context, org.apache.struts.config.ActionConfig actionConfig, org.apache.struts.action.ActionForm actionForm)
          Base implementation assumes that the Context can be cast to WebContext and copies the parameter values from the context to the ActionForm.
protected  void reset(org.apache.commons.chain.Context context, org.apache.struts.config.ActionConfig actionConfig, org.apache.struts.action.ActionForm actionForm)
          Call the reset() method on the specified form bean.
 
Methods inherited from class org.apache.struts.chain.AbstractPopulateActionForm
execute, getActionConfigKey, getActionFormKey, getCancelKey, handleCancel, setActionConfigKey, setActionFormKey, setCancelKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log
Constructor Detail

PopulateActionForm

public PopulateActionForm()
Method Detail

populate

protected void populate(org.apache.commons.chain.Context context,
                        org.apache.struts.config.ActionConfig actionConfig,
                        org.apache.struts.action.ActionForm actionForm)
                 throws java.lang.Exception
Description copied from class: AbstractPopulateActionForm

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.

Overrides:
populate in class AbstractPopulateActionForm
Parameters:
context -
actionConfig -
actionForm -
Throws:
java.lang.Exception

reset

protected void reset(org.apache.commons.chain.Context context,
                     org.apache.struts.config.ActionConfig actionConfig,
                     org.apache.struts.action.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 reqest
actionConfig - The actionConfig for this request
actionForm - The form bean for this request


Copyright ? 2003 - Apache Software Foundation