获取项目名:request.getContextPath();
获取IP:request.getServerName()
获取端口:request.getServerPort()
pageContext.setAttribute("contextPath", request.getContextPath());
JS获取值:'${contextPath}';
获取项目名:request.getContextPath();
获取IP:request.getServerName()
获取端口:request.getServerPort()
pageContext.setAttribute("contextPath", request.getContextPath());
JS获取值:'${contextPath}';