1.scriptlet
<%=request.getContextPath()%>
2.el
${pageContext.request.contextPath}
3.设置basehref
<base href = "http://localhost:8080/项目名称/" />
jsp获取contextPath的方法
最新推荐文章于 2023-03-06 13:56:35 发布
1.scriptlet
<%=request.getContextPath()%>
2.el
${pageContext.request.contextPath}
3.设置basehref
<base href = "http://localhost:8080/项目名称/" />