Craig, thanks for your previous help on this. I took most
of your advice.
Now for part 2. This is the most annoying path problem I've
ever had,
I have mycompany.BundleManager managing LanguageResources
which are extending ListResourceBundle
BundleManager tries to do:
ResourceBundle.getBundle("mycompany.resources.LanguageResources",locale);
but it does not work.
Even when I remove package information from
LanguageResources and put them in root of where all classes
reside (blah/classes/) and try:
ResourceBundle.getBundle("LanguageResources",locale);
// without the package name
it still does not work.
BUT if I create LanguageResources.properties (text files)
and put them in the root of where these classes reside
(again in blah/classes/) and do:
ResourceBundle.getBundle("LanguageResources",locale);
// without the package name
it works fine.
Could someone please let me know what can/should go where
and why?
Also I have additional questions:
1. How to represent special characters? Is it enough to
just put \u0105 instead of the character needed? Is
anything else needed in order for the browser to decode
this? Charset values? It seems so because just saying
"Ksi\u0105z\u0307ka" does not work. It produces "Ksi??ka".
2. Does the servlet engine have to do any charset
manipulation? Does it have to be aware of what charset is
being used?
2. I'm assuming the the LocaleElements are used just like
any bundle and have to be explicitly loaded. If there's
more to it please let me know.
3. How does the fallback on the default bundle happen? Is
it automatic when certain Locale can't be found (in
ResourceBundle) or does it have to be caught (in
BundleManger) and then the default bundle explicitly loaded?
thanks,
dave
--
David Mossakowski [EMAIL PROTECTED]
Programmer 212.310.7275
Instinet Corporation
"I don't sit idly by, I'm planning a big surprise"
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html