嗨,返回模型后我无法获取视图页面,下面的视图是一些代码块
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'
谁能帮我看看这有什么问题?