public String savepass() { adminuserdao = new AdminuserDAO(); Adminuser admin = new Adminuser(); admin = adminuserdao.findById("1"); admin.setPassword(password); adminuserdao.save(admin); return SUCCESS; }
public String userpass() { adminuserdao = new AdminuserDAO(); Adminuser admin = new Adminuser(); admin = (Adminuser) adminuserdao.findAll().get(0); this.result = admin.getPassword(); return SUCCESS; }