put the properties file in the conf/default directory.......
If ur properties file name is xxx_en_US.properties
then
Locale lc = new Locale("en", "US");
ResourceBundle yourBundle = ResourceBundle.getBundle("xxx", lc);
btw,
I'm exploring the I18N for web application as well, mail me directly if u r
interested on sharing the knowledgge.....
[EMAIL PROTECTED]
Penn
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Mikhail Akopov
Sent: Tuesday, May 29, 2001 2:28 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] .properties location?
Sorry for bothering you by repetitive question but I still can't resolve a
very simple problem:
I am going to make localization. Where should PagerServlet.properties be
situated? Documentation says "put it into classpath directory". Tomcat's
example contains *.properties in WEB-INF/classes, and source file (where
ResourceBundle.getBundle() is called) is at the same directory.
Well, I tried different directories: WEB-INF, WEB-INF/classes, directory
of
source file etc. - nothing helped
Each time I got
[EmbeddedTomcat] ===> java.util.MissingResourceException: Can't find bundle
for base name PagerServlet, locale ru_RU
Configuration:
jdk1.3.0_02 ,
jBoss 2.2.1 + embedded Tomcat 3.2.1,
Apache1.3,
mySQL 3.23.25-beta-win (just for testing of 'howto')
Vale! - Mikhail Akopov
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user