喜的觀點,我無法返回模型後,得到視圖頁面,查看下面是一些代碼塊無法從控制器Spring MVC中
List<GridMappingVO> searchList= gridMappingFacade.validate(gridMappingVO);
if(users.equals(searchList.get(0).getUser())
&& passwrd.equals(searchList.get(0).getPass())) {
System.out.println("validation succesfull");
mv = new ModelAndView("searchResults");
logger.info("Response is: " + mv);
mv.addObject("searchList", searchList);
} else {
List<String> list = new ArrayList<String>();
list.add("Invalid");
map.put("error_messages", list);
mv.addAllObjects(map);
}
return mv;
堆棧跟蹤
08:51:31,713 INFO http-8080-1 controller.GridMappingController:45 - Response is: ModelAndView: reference to view with name 'searchResults'; model is null
08:51:31,728 DEBUG http-8080-1 support.DefaultListableBeanFactory:1367 - Invoking afterPropertiesSet() on bean with name 'searchResults'
任何人都可以幫我解決這個問題嗎?
有什麼呢? –