D
Dan
Hello,
I am having the most difficult time trying to get
ResourceBundle.getBundle to work in an applet. It works great in my
testing environment, but my applet keeps throwing a
MissingResourceException. It is driving me crazy. The question is
simple, where do you place the *.properties files so that they are
accessible in the applet?
My code is as follows:
public grabResources() {
Locale currentLocale;
ResourceBundle messages;
currentLocale = Locale.getDefault();
messages = ResourceBundle.getBundle("resource", currentLocale);
System.out.println(messages.getString("test"));
}
I have tried :
messages = ResourceBundle.getBundle("package.resource",
currentLocale);
and neither work. I am using tomcat to serve the applet. I have
placed the properties files in every directory off my project path and
it still returns this exception. What is going on? What must I do in
order to utilize a properties file on an applet?
Please help
Dan
I am having the most difficult time trying to get
ResourceBundle.getBundle to work in an applet. It works great in my
testing environment, but my applet keeps throwing a
MissingResourceException. It is driving me crazy. The question is
simple, where do you place the *.properties files so that they are
accessible in the applet?
My code is as follows:
public grabResources() {
Locale currentLocale;
ResourceBundle messages;
currentLocale = Locale.getDefault();
messages = ResourceBundle.getBundle("resource", currentLocale);
System.out.println(messages.getString("test"));
}
I have tried :
messages = ResourceBundle.getBundle("package.resource",
currentLocale);
and neither work. I am using tomcat to serve the applet. I have
placed the properties files in every directory off my project path and
it still returns this exception. What is going on? What must I do in
order to utilize a properties file on an applet?
Please help
Dan