Code example for ModelAndView

Methods: addObject

0
 
    @edu.umd.cs.findbugs.annotations.SuppressWarnings(value="NP_UNWRITTEN_FIELD", justification="request is not null") 
    @RequestMapping(method = RequestMethod.GET)
    public ModelAndView handleRequestInternal(HttpServletRequest request) {
 
        ModelAndView modelAndView = new ModelAndView("viewOrganizationSettings");
        Properties p = viewOrganizationSettingsServiceFacade.getOrganizationSettings(request.getSession());
        modelAndView.addObject("properties", p);
        modelAndView.addObject("pluginsPropsMap", viewOrganizationSettingsServiceFacade.getDisplayablePluginsProperties());
        modelAndView.addObject("breadcrumbs", new AdminBreadcrumbBuilder().withLink("admin.viewOrganizationSettings", "viewOrganizationSettings.ftl").build());
 
        return modelAndView;
    } 
}