Code example for ModelAndView

Methods: addObjectsetViewName

0
		 
		// 그룹 리스트를 조회한다.  
		List<WeGroupInfo> groupList = adminGroupService.getGroupInfoList();
 		 
		logger.debug("userList : " + groupList.toString());
		modelAndView.addObject("menu", "1");
		modelAndView.addObject("menuCode", "2");
		modelAndView.addObject("groupList" , groupList);
		modelAndView.addObject("groupListSize" , groupList.size());
		modelAndView.addObject("adminUserIdx" , loginUser.getWeUserIdx());
		modelAndView.setViewName("admin/group/groupMgr");
		return modelAndView;
	} 
	 
	@RequestMapping(value="/admin/user", method = { RequestMethod.POST,RequestMethod.GET } )
	public ModelAndView userManage(@ModelAttribute("weUser") WeUser weUser, HttpServletRequest request, HttpServletResponse response, ModelAndView modelAndView) throws Throwable {
		logger.debug("### weUser :  " + weUser.toString());
		 
		String awayYn = StringUtil.strNull(request.getParameter("awayYn"));
		String authYn = StringUtil.strNull(request.getParameter("authYn"));