Spring MVC simple case
Posted
by
coure2011
on Stack Overflow
See other posts from Stack Overflow
or by coure2011
Published on 2012-10-17T10:56:07Z
Indexed on
2012/10/17
11:00 UTC
Read the original article
Hit count: 200
Trying to understand a sample code... I am returning a modelview successfully from my AthuenticationController like this
modelAndView = new ModelAndView("redirect:/home/");
....
return modelAndView;
and my browser url is changed to /home/
but its showing a 404 page
I have a HomePageController and it has methods
@RequestMapping(method = RequestMethod.GET)
public String loadHome
and
@RequestMapping(method = RequestMethod.GET, value = "/main")
public String reloadHome
but System.out.println("Message") is not executing in any of the above methods. When authenticated I want to load a home.jsp page? It is in WEB-INF/jsp/...
© Stack Overflow or respective owner