Extjs中报表导出,报错。
时间:2014-03-10 20:13:06
收藏:0
阅读:350
html中获取工程路径:
<% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %>
javaScript中获取工程路径
var localObj = window.location;
var contextPath = localObj.pathname.split("/")[1];
var basePath = localObj.protocol+"//"+localObj.host+"/"+contextPath;java中获取工程路径
String path = ServletActionContext.getRequest().getRealPath(relativePath);
原文:http://blog.csdn.net/linglinglu/article/details/20925435
评论(0)