Index: core-module/pom.xml =================================================================== diff -u -ra7656dea889b0658185b6b89d61f213a68ac8ead -r3c51cae39631a29e0d277a0e16d85f03b0951ef8 --- core-module/pom.xml (.../pom.xml) (revision a7656dea889b0658185b6b89d61f213a68ac8ead) +++ core-module/pom.xml (.../pom.xml) (revision 3c51cae39631a29e0d277a0e16d85f03b0951ef8) @@ -7,7 +7,7 @@ 313devgrp jstree-project - 19.07.16 + 19.07.17 ../pom.xml @@ -31,7 +31,7 @@ 313devgrp lib-module - 19.07.16 + 19.07.17 pom Index: core-module/src/main/java/egovframework/com/ext/jstree/support/security/controller/RegistrationController.java =================================================================== diff -u -r3378aeef18251570015a9efbed6402f39cffd95d -r3c51cae39631a29e0d277a0e16d85f03b0951ef8 --- core-module/src/main/java/egovframework/com/ext/jstree/support/security/controller/RegistrationController.java (.../RegistrationController.java) (revision 3378aeef18251570015a9efbed6402f39cffd95d) +++ core-module/src/main/java/egovframework/com/ext/jstree/support/security/controller/RegistrationController.java (.../RegistrationController.java) (revision 3c51cae39631a29e0d277a0e16d85f03b0951ef8) @@ -21,24 +21,20 @@ @Autowired private UserService userService; - @RequestMapping(value = "/signup", method = RequestMethod.GET) - public ModelAndView signup(HttpServletRequest request, HttpServletResponse response) throws ServletException,IOException { - ModelAndView model = new ModelAndView(); - model.addObject("title", "User Registration Form"); - model.setViewName("egovframework/com/ext/jstree/support/security/registration"); - return model; - } + @ResponseBody + @RequestMapping(value = {"/services/user/register"}, consumes = "application/json", produces = "application/json") + public ModelAndView registerUser(@RequestBody UserRegistrationForm registrationForm) throws UserAlreadyExistAuthenticationException { - @RequestMapping(value = {"/user/register"}, method = RequestMethod.POST, consumes = "application/json", produces = "application/json") - public @ResponseBody String registerUser(@RequestBody UserRegistrationForm registrationForm) throws UserAlreadyExistAuthenticationException { - if (registrationForm.getUserId() == null) { registrationForm.setUserId(registrationForm.getUserId()); } LocalUser localUser = (LocalUser) userService.registerNewUser(registrationForm); - return "success"; + ModelAndView modelAndView = new ModelAndView("jsonView"); + modelAndView.addObject("result", "success"); + return modelAndView; + } } Index: lib-module/pom.xml =================================================================== diff -u -ra7656dea889b0658185b6b89d61f213a68ac8ead -r3c51cae39631a29e0d277a0e16d85f03b0951ef8 --- lib-module/pom.xml (.../pom.xml) (revision a7656dea889b0658185b6b89d61f213a68ac8ead) +++ lib-module/pom.xml (.../pom.xml) (revision 3c51cae39631a29e0d277a0e16d85f03b0951ef8) @@ -5,7 +5,7 @@ 313devgrp jstree-project - 19.07.16 + 19.07.17ss ../pom.xml Index: pom.xml =================================================================== diff -u -ra7656dea889b0658185b6b89d61f213a68ac8ead -r3c51cae39631a29e0d277a0e16d85f03b0951ef8 --- pom.xml (.../pom.xml) (revision a7656dea889b0658185b6b89d61f213a68ac8ead) +++ pom.xml (.../pom.xml) (revision 3c51cae39631a29e0d277a0e16d85f03b0951ef8) @@ -10,7 +10,7 @@ 4.0.0 313devgrp jstree-project - 19.07.16 + 19.07.17 pom jstree-project