01: /*
02: * Created on Jan 28, 2004
03: *
04: * To change the template for this generated file go to
05: * Window - Preferences - Java - Code Generation - Code and Comments
06: */
07: package org.vfny.geoserver.action;
08:
09: import org.apache.struts.action.ActionForm;
10: import org.apache.struts.action.ActionForward;
11: import org.apache.struts.action.ActionMapping;
12: import javax.servlet.http.HttpServletRequest;
13: import javax.servlet.http.HttpServletResponse;
14:
15: /**
16: * Remove UserContainter from session (and reset session) and return to welcome.
17: * <p>
18: * This is a propert ConfigAction - you need to be logged in for this to work.
19: * </p>
20: * @author rgould, Refractions Research, Inc.
21: * @author $Author: dmzwiers $ (last modification)
22: * @version $Id: LogoutAction.java 6958 2007-06-08 16:20:59Z aaime $
23: */
24: public class LogoutAction extends GeoServerAction {
25: public ActionForward execute(ActionMapping mapping,
26: ActionForm form, HttpServletRequest request,
27: HttpServletResponse response) {
28: // remove UserContainer from Session
29: // logOut(request);
30:
31: //if we don't invalidate their session, we can save other variables, such as locale
32:
33: // return back to the welcome screen
34: // (this is actually (for once) the correct place to go
35: //
36: return mapping.findForward("welcome");
37: }
38: }
|