I've done this before without issue.
Code:
<bean id="someController" class="SomeControllerClass">
<property name="successView" value="redirect:step2.html" />
...
</bean>
Code:
protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws Exception
{
SomeObj userInput = (SomeObj)command;
someServiceObj.doSomethingWithUserInput(userInput);
ModelAndView next = new ModelAndView(getSuccessView());
return next;
}
And, if you need to pass some info along to the subsequent pages, you can put in a line like
Code:
next.addObject("urlParamName", someValue);
HTH,
Mike