01: package com.jat.presentation.controller.action;
02:
03: import javax.servlet.http.HttpServletRequest;
04: import javax.servlet.http.HttpServletResponse;
05: import javax.servlet.http.HttpSession;
06:
07: import com.jat.presentation.controller.Action;
08:
09: /**
10: * <p>Title: JAT</p>
11: * <p>Description: </p>
12: * <p>Copyright: Copyright (c) 2004 -2005 Stefano Fratini (stefano.fratini@gmail.com)</p>
13: * <p>Distributed under the terms of the GNU Lesser General Public License, v2.1 or later</p>
14: * @author stf
15: * @version 1.0
16: * @since 1.2
17: */
18:
19: public class LogoutAction extends Action {
20:
21: public void doAction(HttpServletRequest request,
22: HttpServletResponse response) {
23: HttpSession session = request.getSession();
24: session.invalidate();
25: }
26: }
|