You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
709 B
23 lines
709 B
|
|
|
|
import javax.servlet.*;
|
|
import javax.servlet.http.*;
|
|
import javax.servlet.annotation.*;
|
|
import java.io.IOException;
|
|
|
|
@WebServlet(name = "ApplicantLogoutServlet", value = "/ApplicantLogoutServlet")
|
|
public class ApplicantLogoutServlet extends HttpServlet {
|
|
@Override
|
|
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
|
|
//退出登录清空session信息
|
|
request.getSession().invalidate();
|
|
//退出后重定向到首页
|
|
response.sendRedirect("index.jsp");
|
|
}
|
|
|
|
@Override
|
|
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
|
|
|
|
}
|
|
}
|