public void setSession(Map<String, Object> arg0) {
this.session = arg0;
}
public String changePassword() throws Exception{
System.out.println("oldpwd"+this.oldpassword);
User user = (User)session.get("User");
if(user.getPassword().equals(this.oldpassword)){
user.setPassword(this.newpassword);
this.userManager.mergeUser(user);
}
return SUCCESS;
}