jsp中绝对路径

来源:互联网 发布:淘宝主营类目在哪看 编辑:程序博客网 时间:2024/05/23 00:19
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>