Beispiel #1
0
 public String logout() {
   us.setLoggedIn(null);
   us.setSeen(0);
   us.setCorrect(0);
   ss.setSeen(0);
   ss.setCorrect(0);
   return "index";
 }
Beispiel #2
0
 public String login() {
   for (Student student : getStudentList()) {
     if (selectStudentName.equals(student.getUsername())) {
       us.setLoggedIn(student);
     }
   }
   return "menu";
 }