Passing parameter from controller to jsp in spring
问题 I have a controller method as follow. @RequestMapping("/edit/{jobId}") public String editJob(@PathVariable("jobId") Integer jobId,Model model){ model.addAttribute("id",jobId); return "edit"; } in which i am passing the jobId to get the instance of the job by id and returning "edit" string so that it maps to edit.jsp as per the InternalResourceViewResolver. But when i click on the link it goes to /edit/44 in which case 44 would be the id of the job for which the edit link belongs to. Finally i