@RequestMapping(value = {"/updatePassword"})
 public String updatePassword(
     ModelMap model,
     @ModelAttribute("dusr") Dusr dusr,
     BindingResult result,
     @ModelAttribute("passwordManagement") PasswordManagement passwordManagement) {
   dusr.setUsrid(passwordManagement.getUserId());
   dusr = duService.changePassword(passwordManagement);
   dusr.setUsrpwd(null);
   model.addAttribute("dusr", dusr);
   model.put("tab", "Profile");
   return "viewProfile";
 }
 @RequestMapping(
     value = {"/edit"},
     method = RequestMethod.GET)
 public String editProfile(
     @ModelAttribute("dusr") Dusr dusr,
     BindingResult result,
     ModelMap model,
     @RequestParam("id") String id) {
   Dusr contextUsr = new Dusr();
   contextUsr.setUsrid(Long.parseLong(id.trim()));
   contextUsr = this.duService.getUserDetail(contextUsr);
   model.addAttribute("dusr", contextUsr);
   model.put("tab", "Profile");
   return "editProfile";
 }
 @RequestMapping(value = {"/changePassword"})
 public String changePassword(
     ModelMap model,
     @ModelAttribute("dusr") Dusr dusr,
     BindingResult result,
     @RequestParam("id") String id,
     @ModelAttribute("passwordManagement") PasswordManagement passwordManagement) {
   dusr.setUsrid(Long.parseLong(id.trim()));
   model.addAttribute("dusr", dusr);
   model.addAttribute("passwordManagement", new PasswordManagement());
   model.put("tab", "Profile");
   return "changePassword";
 }