I am using Spring MVC 2.5. I want to redirect to a url from
formBackingObject(HttpServletRequest request) method used in a spring controller.
As there is no ModelAndView object in this method; also I created response object bur it did not work as well.
HttpServletResponse response = null;
response.sendRedirect("google.com");
How can I do that?
formBackingObject() will run complete and will not redirect. In controller handleRequest() method can do it.