1 61 62 package org.objectweb.jonas.webapp.jonasadmin; 63 64 import java.io.IOException ; 65 66 import javax.servlet.ServletException ; 67 import javax.servlet.http.HttpServletRequest ; 68 import javax.servlet.http.HttpServletResponse ; 69 import javax.servlet.http.HttpSession ; 70 71 import org.apache.struts.action.Action; 72 import org.apache.struts.action.ActionForm; 73 import org.apache.struts.action.ActionForward; 74 import org.apache.struts.action.ActionMapping; 75 76 84 85 public final class LogOutAction extends Action { 86 87 89 104 public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request 105 , HttpServletResponse response) 106 throws IOException , ServletException { 107 108 HttpSession session = request.getSession(); 110 session.invalidate(); 111 session = request.getSession(true); 112 113 return (mapping.findForward("Main Index")); 115 116 } 117 118 } 119 | Popular Tags |