logoutaction.java
来自「电子地图服务器,搭建自己的地图服务」· Java 代码 · 共 39 行
JAVA
39 行
/*
* Created on Jan 28, 2004
*
* To change the template for this generated file go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
package org.vfny.geoserver.action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Remove UserContainter from session (and reset session) and return to welcome.
* <p>
* This is a propert ConfigAction - you need to be logged in for this to work.
* </p>
* @author rgould, Refractions Research, Inc.
* @author $Author: dmzwiers $ (last modification)
* @version $Id: LogoutAction.java 6958 2007-06-08 16:20:59Z aaime $
*/
public class LogoutAction extends GeoServerAction {
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
// remove UserContainer from Session
// logOut(request);
//if we don't invalidate their session, we can save other variables, such as locale
// return back to the welcome screen
// (this is actually (for once) the correct place to go
//
return mapping.findForward("welcome");
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?