Spring Web Flow Actions
How to Create a new Action
Extend MultiAction, then make sure your signature returns an Event, and has a RequestContext as a paramter.
The following example is a very basic action that returns "start" all the time.
public class StartAction extends MultiAction
{
public Event start(RequestContext context) throws Exception
{
Event start = new Event(this, "start");
return start;
}
}
Accessing Request Parameters
To get access to the normal Servlet Request parameters you may be used to use the following code
public Event exampleEvent(RequestContext context) throws Exception
{
ExternalContext externalContext = context.getExternalContext();
ParameterMap requestParameterMap = externalContext.getRequestParameterMap();
Published: Saturday, 7 October 2006

