Last change
on this file since 151 was
151,
checked in by vmipsl, 13 years ago
|
Import medias files and cleanup
|
-
Property svn:executable set to
*
|
File size:
909 bytes
|
Line | |
---|
1 | package com.medias.megapoli.struts.actions; |
---|
2 | |
---|
3 | import javax.servlet.ServletException; |
---|
4 | import javax.servlet.http.HttpServletRequest; |
---|
5 | import javax.servlet.http.HttpServletResponse; |
---|
6 | |
---|
7 | import org.apache.struts.action.Action; |
---|
8 | import org.apache.struts.action.ActionForm; |
---|
9 | import org.apache.struts.action.ActionForward; |
---|
10 | import org.apache.struts.action.ActionMapping; |
---|
11 | |
---|
12 | |
---|
13 | /** |
---|
14 | * @author combaz |
---|
15 | * |
---|
16 | * Created on 21 févr. 2005 |
---|
17 | */ |
---|
18 | public class DisconnectAction extends Action { |
---|
19 | |
---|
20 | public ActionForward execute (ActionMapping mapping, |
---|
21 | ActionForm form, |
---|
22 | HttpServletRequest request, |
---|
23 | HttpServletResponse response) |
---|
24 | throws ServletException { |
---|
25 | |
---|
26 | String target = "success"; |
---|
27 | |
---|
28 | request.getSession ().setAttribute ("SES_USER", null); |
---|
29 | request.getSession ().invalidate (); |
---|
30 | |
---|
31 | return (mapping.findForward (target)); |
---|
32 | } |
---|
33 | |
---|
34 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.