I sort of solved it by getting rid of redirects entirely and passing the name of the search controller to the user details wizard, like this:
HTML Code:
<code>
protected ModelAndView processFinish(HttpServletRequest request,
HttpServletResponse response, Object command, BindException errors)
throws Exception {
ApplicationContext ctx = getApplicationContext();
Controller ctrl = (Controller) ctx.getBean(cancelController);
return ctrl.handleRequest(request, response);
}
</code>
This seems to work, but I don't know if it's correct from a framework point of view. If anybody has any input on this, or the redirect problem posted earlier, please let me know. Thanks.