org.apache.struts.chain.servlet
Class PopulateActionForm
java.lang.Object
org.apache.struts.chain.AbstractPopulateActionForm
org.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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static final org.apache.commons.logging.Log log
PopulateActionForm
public PopulateActionForm()
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 reqestactionConfig
- The actionConfig for this requestactionForm
- The form bean for this request
Copyright ? 2003 - Apache Software Foundation