Code example for ModelAndView

Methods: addObject

0
    } 
 
    @Override 
    protected ModelAndView process(HttpServletRequest req,
            HttpServletResponse res) throws Exception {
        ModelAndView result = new ModelAndView("index");
        result.addObject("dInfo", driver.getDriverInfo());
        result.addObject("aInfos", driver.getActiveMissions());
        result.addObject("hInfos", driver.getHistoryMissions());
        return result;
    } 
 
} 
Experience pair programming with AI  Get Codota for Java