<%@ page language="java" pageEncoding="UTF-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; session.setAttribute("usertype", null); session.setAttribute("users", null); session.setAttribute("userId", null); session.setAttribute("userName", null); session.invalidate(); response.sendRedirect(basePath+request.getParameter("ret")); %>