Class PopulateActionForm
java.lang.Object
org.apache.struts.chain.commands.ActionCommandBase
org.apache.struts.chain.commands.AbstractPopulateActionForm
org.apache.struts.chain.commands.servlet.PopulateActionForm
- All Implemented Interfaces:
org.apache.commons.chain.Command<ActionContext>
,ActionCommand
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) $
-
Field Summary
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isPopulate
(ActionContext context, ActionConfig actionConfig) Determines whether an action form should be populated.protected boolean
isReset
(ActionContext context, ActionConfig actionConfig) Determines whether an action form should be reset.protected void
populate
(ActionContext context, ActionConfig actionConfig, ActionForm actionForm) Populate the givenActionForm
with request parameter values, taking into account any prefix/suffix values configured on the givenActionConfig
.protected void
reset
(ActionContext context, ActionConfig actionConfig, ActionForm actionForm) Call thereset()
method on the specified form bean.Methods inherited from class org.apache.struts.chain.commands.AbstractPopulateActionForm
execute_, handleCancel, trimParameterName
Methods inherited from class org.apache.struts.chain.commands.ActionCommandBase
execute
-
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 givenActionConfig
.- Specified by:
populate
in classAbstractPopulateActionForm
- Parameters:
context
- The ActionContext we are processingactionConfig
- The ActionConfig we are processingactionForm
- The ActionForm we are processing- Throws:
Exception
- On an unexpected error
-
reset
Description copied from class:AbstractPopulateActionForm
Call the
reset()
method on the specified form bean.- Specified by:
reset
in classAbstractPopulateActionForm
- Parameters:
context
- The context for this requestactionConfig
- The actionConfig for this requestactionForm
- The form bean for this request
-
isPopulate
Determines whether an action form should be populated.- Specified by:
isPopulate
in classAbstractPopulateActionForm
- Parameters:
context
- the ActionContext we are processingactionConfig
- action config for current request- Returns:
- true if action form should be populated
- Since:
- Struts 1.4
-
isReset
Determines whether an action form should be reset.- Specified by:
isReset
in classAbstractPopulateActionForm
- Parameters:
context
- the ActionContext we are processingactionConfig
- action config for current request- Returns:
- true if action form should be reset
- Since:
- Struts 1.4
-