Class SetAction
java.lang.Object
org.springframework.webflow.action.AbstractAction
org.springframework.webflow.action.SetAction
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
,Action
An action that sets an attribute in a
scope
when executed. Always returns the "success" event.- Author:
- Keith Donald
-
Field Summary
Fields inherited from class org.springframework.webflow.action.AbstractAction
logger
-
Constructor Summary
ConstructorDescriptionSetAction
(Expression nameExpression, Expression valueExpression) Creates a new set attribute action. -
Method Summary
Modifier and TypeMethodDescriptionprotected Event
doExecute
(RequestContext context) Template hook method subclasses should override to encapsulate their specific action execution logic.toString()
Methods inherited from class org.springframework.webflow.action.AbstractAction
afterPropertiesSet, doPostExecute, doPreExecute, error, error, execute, getActionNameForLogging, getEventFactorySupport, initAction, no, result, result, result, result, success, success, yes
-
Constructor Details
-
SetAction
Creates a new set attribute action.- Parameters:
nameExpression
- the name of the property to set (required)valueExpression
- the expression to obtain the new property value (required) expected
-
-
Method Details
-
doExecute
Description copied from class:AbstractAction
Template hook method subclasses should override to encapsulate their specific action execution logic.- Specified by:
doExecute
in classAbstractAction
- Parameters:
context
- the action execution context, for accessing and setting data in "flow scope" or "request scope"- Returns:
- the action result event
- Throws:
Exception
- an unrecoverable exception occured, either checked or unchecked
-
toString
-