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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisPopulate(ActionContext context, ActionConfig actionConfig) Determines whether an action form should be populated.protected booleanisReset(ActionContext context, ActionConfig actionConfig) Determines whether an action form should be reset.protected voidpopulate(ActionContext context, ActionConfig actionConfig, ActionForm actionForm) Populate the givenActionFormwith request parameter values, taking into account any prefix/suffix values configured on the givenActionConfig.protected voidreset(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, trimParameterNameMethods 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:AbstractPopulateActionFormPopulate the given
ActionFormwith request parameter values, taking into account any prefix/suffix values configured on the givenActionConfig.- Specified by:
populatein 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:AbstractPopulateActionFormCall the
reset()method on the specified form bean.- Specified by:
resetin 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:
isPopulatein 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:
isResetin 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
-