Weblogic troubleshooting
1. 解决weblogic下htc文件无法调用问题在工程的Web.xml文件中加入如下配置代码
<mime-mapping>
<extension>htc</extension
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);
}
页:
[1]