public String input() {
   StudentManager stdMng = new StudentManager();
   student = stdMng.getStudent(bean.getCode());
   return INPUT;
 }
  public String execute() {
    StudentManager stdMng = new StudentManager();
    Student student = new Student();
    StudentClass stdClass = new StudentClass();
    stdClass.setId(bean.getStudentClassID());
    student.setCode(bean.getCode());
    student.setFullName(bean.getFullName());
    student.setPhoto(bean.getPhoto());
    student.setPhone(bean.getPhone());
    student.setPass(bean.getPass());
    student.setBirthDate(bean.getBirthDate());
    student.setEmail(bean.getEmail());
    student.setGender(bean.getGender());
    student.setAddress(bean.getAddress());
    student.setActive(bean.isActive());
    student.setStudentClass(stdClass);
    User user = (User) ActionContext.getContext().getSession().get("user");
    student.setUser(user);

    stdMng.update(student);
    if (stdMng.updateStudent(student)) {
      addActionMessage("Update Student Successfully !!!");
      return SUCCESS;
    } else {
      addActionError("Update Student Unsuccessfully !!!");
      return ERROR;
    }
  }