org.springframework.webflow.action
Class SetAction
java.lang.Object
org.springframework.webflow.action.AbstractAction
org.springframework.webflow.action.SetAction
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean, Action
public class SetAction
- extends AbstractAction
An action that sets an attribute in a scope
when executed. Always returns the "success" event.
- Author:
- Keith Donald
SetAction
public SetAction(Expression nameExpression,
Expression valueExpression,
Class expectedType,
ConversionService conversionService)
- 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)expectedType
- the expected value typeconversionService
- the service to perform the type conversion if the actual value type does not match the
expected
toString
public String toString()
- Overrides:
toString
in class Object