@Override
  public String execute() throws Exception {
    int scid = 0;
    if (ActionContext.getContext().getSession().get("id") != null) {
      scid = Integer.parseInt(ActionContext.getContext().getSession().toString());
    }

    setScorelist(scoreService.loadScore());
    setStu(studentService.loadStudentById(scid));
    return SUCCESS;
  }
  public String viewScore() throws Exception {
    try {
      int id = 0;
      if (ServletActionContext.getRequest().getParameter("scid") != null) {
        id = Integer.parseInt(ServletActionContext.getRequest().getParameter("scid").toString());
      }
      setSc(scoreService.getScore1(id));
      return "viewScore";

    } catch (Exception e) {
      return ERROR;
    }
  }