Code example for ModelAndView

Methods: addObject

0
    } 
 
    @RequestMapping(method = RequestMethod.GET)
    public ModelAndView handleRequestInternal(@RequestParam(value = "globalPrdCategoryNum", required = true) String globalPrdCategoryNum) {
 
        ModelAndView modelAndView = new ModelAndView("viewProductCategoryDetails");
        List<ProductCategoryTypeDto> typeDto = adminServiceFacade.retrieveProductCategoryTypes();
        ProductCategoryDetailsDto detailsDto =  adminServiceFacade.retrieveProductCateogry(globalPrdCategoryNum);
        modelAndView.addObject("typeDto", typeDto);
        modelAndView.addObject("detailsDto", detailsDto);
        modelAndView.addObject("breadcrumbs", new AdminBreadcrumbBuilder().withLink("viewProductCategoryDetails", "viewProductCategoryDetails.ftl").build());
        modelAndView.addObject("globalPrdCategoryNum", globalPrdCategoryNum);
        return modelAndView;
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java