1 16 17 18 package org.apache.webapp.admin; 19 20 21 import java.io.IOException ; 22 import java.util.Iterator ; 23 import java.util.List ; 24 import java.util.Locale ; 25 import javax.servlet.ServletException ; 26 import javax.servlet.http.HttpServletRequest ; 27 import javax.servlet.http.HttpServletResponse ; 28 import javax.servlet.http.HttpSession ; 29 import org.apache.struts.action.Action; 30 import org.apache.struts.action.ActionErrors; 31 import org.apache.struts.action.ActionForm; 32 import org.apache.struts.action.ActionForward; 33 import org.apache.struts.action.ActionMapping; 34 35 36 43 44 public final class LogOutAction extends Action { 45 46 47 49 50 65 public ActionForward execute(ActionMapping mapping, 66 ActionForm form, 67 HttpServletRequest request, 68 HttpServletResponse response) 69 throws IOException , ServletException { 70 71 HttpSession session = request.getSession(); 73 session.invalidate(); 74 session = request.getSession(true); 75 76 return (mapping.findForward("Main Menu")); 78 79 } 80 81 82 } 83 | Popular Tags |