jsp中${pageContext.request.contextPath}的理解
${pageContext.request.contextPath}的理解${pageContext.request.contextPath}是JSP取得绝对路径的方法,等价于<%=request.getContextPath()%> 。也就是取出部署的应用程序名或者是当前的项目名称比如我的项目名称是demo1在浏览器中输入为http://localhost:8080/demo1/a.jsp ${pageContext.request.contextPath}或<%=request.ge
原创
2020-11-03 15:37:34 ·
2305 阅读 ·
1 评论