@RequestMapping(value = "/editTheWork/{id}") public String editTheWork(@PathVariable int id, Model model) { TheWork theWork = (TheWork) js.getTheWork(id); model.addAttribute("theWork", theWork); return "/journal/editTheWork"; }