Ejemplo n.º 1
0
 @Action(
     value = LOGOUT,
     results = {@Result(name = SUCCESS, type = REDIRECT_ACTION, location = IndexAction.INDEX)})
 public String logout() {
   super.clearSession();
   return SUCCESS;
 }
Ejemplo n.º 2
0
 private String login(UserStatus status) {
   super.clearSession();
   if ((user = userService.login(user, status)) != null) {
     // 将相关的用户id存入session
     super.saveUser(user);
     super.getSessionMap().put("relativeUsers", talkingService.preGetRelativeUserId(user));
     // 将相关的用户id存入session
     super.getSessionMap().put("relativeUsers", talkingService.preGetRelativeUserId(user));
     return SUCCESS;
   } else {
     return INPUT;
   }
 }