Adding a user controller
The above mentioned code for redirect doesn't work. I guess it's because there are forward slashes in the redirect parameter. I was able to solve the problem by following code in the controller:
Although the problem was solved, I would prefer a solution where the view name is not hard coded in the java file.
RedirectView redirectView = new RedirectView("/admin/admin_home.html",true);
return new ModelAndView(redirectView);
Any idea on how I could achieve the redirect with the configuration in xml and not in java.