String _path = request.getContextPath(); String _basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + _path + "/"; pageContext.setAttribute("path", _basePath);
时间: 2024-10-19 15:10:34
String _path = request.getContextPath(); String _basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + _path + "/"; pageContext.setAttribute("path", _basePath);