Example #1
0
  @RequestMapping(value = "/loadDetails.html/{commuId}/{lanuageId}", method = RequestMethod.GET)
  public String loadUserdetails(
      @ModelAttribute(value = "userdetail") UserProfileForm userSession,
      @PathVariable("commuId") int commuId,
      @PathVariable("lanuageId") int lanuageId,
      Map<String, Object> map) {

    int lanuage_id = 1;
    map.put("vUserProfile", adminService.loadUserDetails(userSession, lanuage_id));
    map.put("HAS_ERROR", null);
    map.put("commuId", commuId);
    map.put("lanuageId", lanuageId);
    return "userdetails.html";
  }
Example #2
0
  @RequestMapping(value = "/UpdateDetail.html/{commuId}/{lanuageId}", method = RequestMethod.POST)
  public String UpdateUser(
      @ModelAttribute("vUserProfile") VUserProfile user,
      @ModelAttribute(value = "userdetail") UserProfileForm userSession,
      @PathVariable("commuId") int commuId,
      @PathVariable("lanuageId") int lanuageId,
      Map<String, Object> map,
      BindingResult result) {

    user.setUserId(userSession.getUserID());

    adminService.updateUser(user, 1);

    int lanuage_id = 1;
    map.put("vUserProfile", adminService.loadUserDetails(userSession, lanuage_id));
    map.put("HAS_ERROR", null);
    map.put("commuId", commuId);
    map.put("lanuageId", lanuageId);
    return "userdetails.html";
  }