01: package org.manentia.kasai.ui.actions;
02:
03: import javax.servlet.http.HttpServletRequest;
04: import javax.servlet.http.HttpServletResponse;
05:
06: import org.apache.struts.action.ActionForm;
07: import org.apache.struts.action.ActionForward;
08: import org.apache.struts.action.ActionMapping;
09:
10: public class Logout extends BaseAction {
11: public ActionForward execute(ActionMapping mapping,
12: ActionForm form, HttpServletRequest request,
13: HttpServletResponse response) throws Exception {
14:
15: request.getSession().invalidate();
16:
17: return mapping.findForward(SUCCESS);
18: }
19: }
|