@RequestMapping(value = "/modify", method = RequestMethod.GET) public ModelAndView goModify(@RequestParam long productId, Product product) { ModelAndView mav = new ModelAndView("admin/product/edit"); product = productService.getProductById(productId); mav.addObject("product", product); mav.addObject("productCategories", productCategoryService.findAll()); return mav; }