public class SetAction extends AbstractAction
scope
when executed. Always returns the "success" event.logger
Constructor and Description |
---|
SetAction(Expression nameExpression,
Expression valueExpression)
Creates a new set attribute action.
|
Modifier and Type | Method and Description |
---|---|
protected Event |
doExecute(RequestContext context)
Template hook method subclasses should override to encapsulate their specific action execution logic.
|
java.lang.String |
toString() |
afterPropertiesSet, doPostExecute, doPreExecute, error, error, execute, getActionNameForLogging, getEventFactorySupport, initAction, no, result, result, result, result, success, success, yes
public SetAction(Expression nameExpression, Expression valueExpression)
nameExpression
- the name of the property to set (required)valueExpression
- the expression to obtain the new property value (required) expectedprotected Event doExecute(RequestContext context) throws java.lang.Exception
AbstractAction
doExecute
in class AbstractAction
context
- the action execution context, for accessing and setting data in "flow scope" or "request scope"java.lang.Exception
- an unrecoverable exception occured, either checked or uncheckedpublic java.lang.String toString()
toString
in class java.lang.Object