1 package xpetstore.web.struts.action.signon; 2 3 import javax.servlet.http.HttpServletRequest ; 4 import javax.servlet.http.HttpServletResponse ; 5 6 import org.apache.struts.action.ActionForm; 7 import org.apache.struts.action.ActionForward; 8 import org.apache.struts.action.ActionMapping; 9 10 import xpetstore.web.struts.action.BaseAction; 11 12 13 26 public class LogoutAction 27 extends BaseAction 28 { 29 31 34 protected ActionForward doExecute( ActionMapping mapping, 35 ActionForm form, 36 HttpServletRequest request, 37 HttpServletResponse response ) 38 throws Exception 39 { 40 clearSession( request ); 41 return mapping.findForward( SUCCESS ); 42 } 43 } 44 | Popular Tags |