@RequestMapping( value = "/dashboard/updateuser", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE) public @ResponseBody String updateUserProfile( @RequestBody String contactObjectJSON, ModelMap model, HttpServletRequest request) { logger.info("Updating User Profile for JSON" + contactObjectJSON); if (filter.isUserSessionExpired(request, encoder)) { return "You session has expired. Please login again to proceed!!"; } Contact contact = null; try { contact = Utils.getContactObjectFromJSON(contactObjectJSON); logger.info("Updating User Profile for username = "******"Error in updating user details in database."; } model.addAttribute("command", contact); return "true"; }