Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
904 | dev | 1 | package ak.hostcaptain.core.action; |
899 | dev | 2 | |
3 | import javax.servlet.http.HttpServletRequest; |
||
4 | import javax.servlet.http.HttpServletResponse; |
||
5 | |||
6 | import org.apache.struts.action.Action; |
||
7 | import org.apache.struts.action.ActionMapping; |
||
8 | import org.apache.struts.action.ActionForm; |
||
9 | import org.apache.struts.action.DynaActionForm; |
||
10 | import org.apache.struts.action.ActionForward; |
||
11 | import org.apache.struts.action.ActionMessages; |
||
12 | import org.apache.struts.action.ActionErrors; |
||
13 | import org.apache.struts.action.ActionError; |
||
14 | |||
15 | public final class LogoutAction |
||
16 | extends Action |
||
17 | { |
||
18 | public ActionForward execute(ActionMapping mapping, ActionForm form, |
||
19 | HttpServletRequest request, HttpServletResponse response) |
||
20 | throws Exception |
||
21 | { |
||
22 | if(request.getSession() != null) |
||
23 | request.getSession().invalidate(); |
||
24 | |||
25 | return mapping.findForward("default"); |
||
26 | } |
||
27 | } |