各位,我现在的代码在java的main方法中是可以取到这个值的,可是我如果用在tomcat 中执行这个方法,去总是显示路径不对:
java.util.MissingResourceException: Can't find resource for bundle java.util.Pro
pertyResourceBundle, key com.jtengine.logon.LogonAction.errormsg1我现在把这个配置文件放在E:\\Tomcat5\\webapps\\jtengine\\WEB-INF\\JT_zh_CN.properties
请问这个怎样解决,我搞了2,3个小时还搞不定了,请帮下一了,谢谢了. private static String getLocalMsg(String msgName){
String retStr="";
try {
fileName="E:\\Tomcat5\\webapps\\jtengine\\WEB-INF\\JT_zh_CN.properties";
InputStream is = new FileInputStream(fileName); // 生成文件输入流
PropertyResourceBundle pr = new PropertyResourceBundle(is);  retStr = pr.getString(msgName);
is.close();
return retStr;
}catch (Exception e) {
System.out.println(e);
return retStr;
}
}