com.oroad.stxx.chain.legacy
Class PopulateActionForm

java.lang.Object
  extended byorg.apache.struts.chain.AbstractPopulateActionForm
      extended bycom.oroad.stxx.chain.legacy.PopulateActionForm
All Implemented Interfaces:
org.apache.commons.chain.Command

public class PopulateActionForm
extends org.apache.struts.chain.AbstractPopulateActionForm
implements org.apache.commons.chain.Command

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

Version:
$Revision: 1.2 $ $Date: 2004/05/17 22:43:08 $
Author:
Craig R. McClanahan

Constructor Summary
PopulateActionForm()
           
 
Method Summary
 java.lang.String getRequestProcessorHelperKey()
          Return the context attribute key under which the RequestProcessorHelper for the currently selected application action is stored.
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)
           
 void setRequestProcessorHelperKey(java.lang.String requestProcessorHelperKey)
          Set the context attribute key under which the RequestProcessorHelper for the currently selected application action is stored.
 
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
 
Methods inherited from interface org.apache.commons.chain.Command
execute
 

Constructor Detail

PopulateActionForm

public PopulateActionForm()
Method Detail

getRequestProcessorHelperKey

public java.lang.String getRequestProcessorHelperKey()

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


setRequestProcessorHelperKey

public void setRequestProcessorHelperKey(java.lang.String requestProcessorHelperKey)

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

Parameters:
requestProcessorHelperKey - The new context attribute key

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

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.

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)