Code example for ModelAndView

Methods: addObject

0
	    List<Supervisor> directReports = userManager.getEmployees(personId).getSupervisorList(); 
	     
 
	     
	     
		ModelAndView mav = new ModelAndView(view); 
		mav.addObject("userData", userData); 
		mav.addObject("org", org); 
		mav.addObject("directReports", directReports); 
		mav.addObject("supervisor", supervisors); 
		 
		return mav; 
		 
	} 
 
	public String getView() { 
		return view; 
	} 
 
	public void setView(String view) {