1. 解决weblogic下htc文件无法调用问题
在工程的Web.xml文件中加入如下配置代码
|
2. 文件下载
response.reset();
3. 取realpath
ServletContext context;
if ("weblogic".equalsIgnoreCase(AppProperty.getPropertyVal(AppProperty.APP_SERVER))) {
URL url = context.getResource("/");
strRealPath = url.getPath() + path;
} else {
strRealPath =
context.getRealPath("//" + path);
}