获取当前工程部署路径

时间:2014-06-10 21:20:23   收藏:0   阅读:332

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%>
<c:set var="webRoot" value="<%=basePath%>" />

获取当前工程部署路径,布布扣,bubuko.com

原文:http://www.cnblogs.com/zjhs/p/3779232.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!