Is it possible to maintain the resource bundle in a folder structure something similar to the following;
1. us\en
2. ae\en
3. ae\ar
The resource bundle file name will be the same but maintained in different folders. I know Java recomends
myresource_en_US.properties
But I need to maintained them in folders and use the resource bundle classes to access. I am using JDK 6. Does anyone know how I can do it?
Yes, you can control the loading with a custom
Control. Here’s a kickoff example:(the source code is copied from the default implementation with only the
resourceNamechanged and thePropertyResourceBundlebeing changed to read the stream as UTF-8 –no need for native2ascii anymore)which you use as follows
See also: