예제 #1
0
  @RequestMapping("session/modify")
  public String modify(HttpSession session) {
    student.setName("이승수12");
    student.setAvg(77);

    session.setAttribute("id", student);
    return "sessionView";
  }
예제 #2
0
  @RequestMapping("session/make")
  public String make(HttpSession session) {
    student.setName("이승수");
    student.setAvg(88);

    session.setAttribute("id", student);
    return "sessionView";
  }