jsp路径问题
获取路径${pageContext.request.contextPath}
<%
String path = request.getContextPath();
String basePath = request.getScheme()+”://”+request.getServerName()+”:”+request.getServerPort()+path+”/”;
%>
${basePath}
jsp路径问题
获取路径${pageContext.request.contextPath}
<%
String path = request.getContextPath();
String basePath = request.getScheme()+”://”+request.getServerName()+”:”+request.getServerPort()+path+”/”;
%>
${basePath}