ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
if (classLoader == null) {
classLoader = ClassLoader.getSystemClassLoader();
}
java.net.URL url = classLoader.getResource("");
String ROOT_CLASS_PATH = url.getPath()+"/";
File rootFile = new File(ROOT_CLASS_PATH);
String WEB_INFO_DIRECTORY_PATH = rootFile.getParent()+"/";
File webInfoDir = new File(WEB_INFO_DIRECTORY_PATH);
String strReturn = webInfoDir.getParent()+"/";
strReturn= strReturn.replace("\\", "/");
if (classLoader == null) {
classLoader = ClassLoader.getSystemClassLoader();
}
java.net.URL url = classLoader.getResource("");
String ROOT_CLASS_PATH = url.getPath()+"/";
File rootFile = new File(ROOT_CLASS_PATH);
String WEB_INFO_DIRECTORY_PATH = rootFile.getParent()+"/";
File webInfoDir = new File(WEB_INFO_DIRECTORY_PATH);
String strReturn = webInfoDir.getParent()+"/";
strReturn= strReturn.replace("\\", "/");