@RequestMapping(value = URL_ACCOUNT_VITEA, method = RequestMethod.POST) public ModelAndView vitea( @ModelAttribute(COMMAND_VITEA) @Valid MyProfessionalProfile myProfessionalProfile, BindingResult result, Locale locale) { if (result.hasErrors()) { // basic validation fails ModelAndView modelAndView = constructModelAndView(myProfessionalProfile, locale); modelAndView.addObject(COMMAND, myProfessionalProfile); return modelAndView; } profileService.storeMyProfessionalProfile(myProfessionalProfile); ModelAndView modelAndView = constructModelAndView(myProfessionalProfile, locale); modelAndView.addObject(COMMAND, myProfessionalProfile); modelAndView.addObject(STORED, true); return modelAndView; }