In my controller I’m using
return new ModelAndView( "redirect:new_page" );
now I changed Spring version from 3.0.6 to 3.1.2 and I found that it’s not working in new version.
My Controller is defined like
@Controller
@RequestMapping(value = "/test")
public class MyController {
I tried to use
"redirect:/new_page""redirect:/test/new_page""redirect:./new_page"
and nothing helped, any idea?
So the problem you had is using Object as return type, which, accoring to Spring MVC reference manual, isn’t dispatched as view name or
ModelAndView:I guess you used some undocumented / internal part of Spring MVC, which implementation changed in new release.