📄 quiteaction.java
字号:
/*
* 创建日期:2006-7-16 21:45:25
*
* 代码作者:Administrator
*
* 项目名称:eShop
*
* Copyright 2005 Metarnet, Inc. All right reserved.
*/
package eshop.business;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
/**
* <h5>功能说明:</h5>
*
* <h5>对应需求:</h5>
*
*
* @version 1.0
* @author Administrator
*/
public class QuiteAction extends HttpServlet
{
public void init() throws ServletException
{
}
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{
try
{
String strRedirectAddress = "top.jsp";
HttpSession session = request.getSession();
session.removeAttribute("s_UserCode");
session.invalidate();
response.sendRedirect(strRedirectAddress);
}
catch(Exception e)
{
e.printStackTrace();
}
}
//Process the HTTP Post request
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{
doGet(request,response);
}
public void destroy()
{
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -