<%@ page language="java" pageEncoding="gb2312"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> My JSP 'adminyanzheng.jsp' starting page <% session.invalidate(); response.sendRedirect("index.jsp"); %>