您的user.jsp:
<form:form action="profile/proffesional" modelAttribute="PROFESSIONAL"> --- --- </form:form>
在您的控制器类中:
(使其成为一个有意义的完整方法名称。。听见,我认为您是在DB中插入记录。)
@RequestMapping(value = "proffessional", method = RequestMethod.POST) public @ResponseBody String proffessionalDetails( @ModelAttribute UserProfessionalForm professionalForm, BindingResult result, Model model) { UserProfileVO userProfileVO = new UserProfileVO(); userProfileVO.setUser(sessionData.getUser()); userService.saveUserProfile(userProfileVO); model.addAttribute("PROFESSIONAL", professionalForm); return "Your Professional Details Updated"; }
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)