jsp页面中${pageContext.request.contextPath}介绍
取出部署的当前的项目名或者叫当前应用名称:
${pageContext.request.contextPath}是JSP取得绝对路径的方法
例如:浏览器地址栏为"http://localhost:8080/test/index.jsp "
那么:取出来的就是"http://localhost:8080/test",简写为"/test"
/test 等价于 http://localhost:8080...
原创
2020-03-22 09:33:45 ·
676 阅读 ·
0 评论