Package com.action.user

Source Code of com.action.user.UserLogoutAction

package com.action.user;

import java.util.Map;
import com.db.user.*;
import com.opensymphony.xwork2.ActionContext;
public class UserLogoutAction {
  public String execute(){
    try {
      // 세션에 저장된 유저정보를 삭제한다
      ActionContext context = ActionContext.getContext();
      Map<String, UserVO> session = context.getSession();     
      session.remove("user");
      context.setSession(session);     
    } catch (Exception e) {
      System.out.println("UserLogoutAction.execute():"+e.toString());
    }
    return "success";
  }
}
TOP

Related Classes of com.action.user.UserLogoutAction

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.