Code example for ModelAndView

Methods: addObject

0
 
            KscResultSet resultSet = new KscResultSet(current_graph.getTitle(), begin_time.getTime(), end_time.getTime(), resource, display_graph); 
            resultSets.add(resultSet); 
        } 
 
        ModelAndView modelAndView = new ModelAndView("KSC/customReport"); 
 
        modelAndView.addObject("showTimeSpan", report.getShow_timespan_button()); 
        modelAndView.addObject("showGraphType", report.getShow_graphtype_button()); 
        modelAndView.addObject("graphsPerLine", report.getGraphs_per_line()); 
         
        modelAndView.addObject("title", report.getTitle()); 
        modelAndView.addObject("resultSets", resultSets); 
         
        return modelAndView; 
    } 
 
    /** 
     * <p>getKscReportFactory</p> 
     *