String itemId = request.getParameter("itemId"); Item item = this.petStore.getItem(itemId); Map model = new HashMap(); model.put("item", item); model.put("product", item.getProduct()); return new ModelAndView("Item", model);
this.petStore = petStore;