Beispiel #1
0
 /*
  * This method will provide the medium to update an existing employee.
  */
 @RequestMapping(
     value = {"/edit-{ssn}-employee"},
     method = RequestMethod.GET)
 public String editEmployee(@PathVariable String ssn, ModelMap model) {
   Employee employee = service.findEmployeeBySsn(ssn);
   model.addAttribute("employee", employee);
   model.addAttribute("edit", true);
   return "registration";
 }