@RequestMapping(value = "/save", method = RequestMethod.POST) public ModelAndView saveEmployee( @ModelAttribute("command") EmployeeBean employeeBean, BindingResult result) { Employee employee = prepareModel(employeeBean); employeeService.addEmployee(employee); return new ModelAndView("redirect:/add.html"); }