weblogic和tomcat获取的应用路径不一样
2010-10-19 09:48
253 查看
tomcat获取路径时包括一个“/”
weblogic获取路径时不包括最后的“/”
String strVendor="weblogic";
//得到系统路径
if ("weblogic".equals(strVendor)){
ServletContext app=(ServletContext)pageContext.getServletContext();
String strSysPath = app.getRealPath("/") + "/NEUUpdate/";
}else{
ServletContext app=(ServletContext)pageContext.getServletContext();
String strSysPath = app.getRealPath("/") + "NEUUpdate/";
}
weblogic获取路径时不包括最后的“/”
String strVendor="weblogic";
//得到系统路径
if ("weblogic".equals(strVendor)){
ServletContext app=(ServletContext)pageContext.getServletContext();
String strSysPath = app.getRealPath("/") + "/NEUUpdate/";
}else{
ServletContext app=(ServletContext)pageContext.getServletContext();
String strSysPath = app.getRealPath("/") + "NEUUpdate/";
}
相关文章推荐
- weblogic和tomcat获取的应用路径不一样
- weblogic和tomcat获取的应用路径不一样
- tomcat 和 weblogic获取项目的根路径的方法
- 获取J2ee工程在应用服务器(如tomcat)下的物理路径
- 在tomcat与weblogic下获取项目路径的区别(如报错:java.io.FileNotFoundException)
- java获取weblogic应用运行路径
- weblogic获取应用目录路径
- weblogic获取应用目录路径为null的解决办法
- Tomcat下获取web应用的绝对路径
- Weblogic web应用中获取文件的绝对路径
- Tomcat下获取web应用的绝对路径
- Weblogic web应用中获取文件的绝对路径
- weblogic发布应用包,路径乱码错误&linux修改LANG环境变量(解决中文乱码问题)
- 从类里获取tomcat classes绝对路径
- tomcat和weblogic应用服务器JAVA中JNDI写法
- ios-day12-01(ios开发中的数据存储的常用方式有哪些、应用沙盒目录结构、应用沙盒目录路径的常见获取方式)
- java 获取tomcat webapps目录路径
- 获取应用包路径及包下夹路径
- Atitit.获取approot api 应用根路径 java c#.net php asp
- 按键(vb)启动指定目录的程序以及获取当前应用路径