1 package org.nextime.ion.backoffice.action; 2 3 import java.io.IOException ; 4 5 import javax.servlet.ServletException ; 6 import javax.servlet.http.HttpServletRequest ; 7 import javax.servlet.http.HttpServletResponse ; 8 import org.apache.struts.action.Action; 9 import org.apache.struts.action.ActionForm; 10 import org.apache.struts.action.ActionForward; 11 import org.apache.struts.action.ActionMapping; 12 13 public class LogoutAction extends Action { 14 15 public ActionForward perform( 16 ActionMapping mapping, 17 ActionForm form, 18 HttpServletRequest request, 19 HttpServletResponse response) 20 throws IOException , ServletException { 21 22 request.getSession().removeAttribute("userLogin"); 23 request.getSession().removeAttribute("treeControlNode"); 24 request.getSession().removeAttribute("pageInfos"); 25 26 return (mapping.findForward("ok")); 28 29 } 30 31 } 32 | Popular Tags |