When I look at Spring FrameWork 3.0, I see the following code example:
@RequestMapping("/index.dlp") public ModelAndView index(){ logger.info("Return View"); return new ModelAndView("index"); }
This option does not work for me. Only when I change the code as follows:
@RequestMapping("/index.dlp") public ModelAndView index(){ logger.info("Return View"); return new ModelAndView("index.jsp"); }
It works great. Can someone tell me why?
java spring spring-mvc
danny.lesnik
source share