Frank Starsinic wrote:
> This is a good idea. I'm wondering. Is there a performance hit having all
> the resource strings in one XML file or
> would it be better to have a seperate file for each locale?
>
There is a hit to parse the messages when you first create the new object --
this corresponds to the current hit to load in the various properties files.
After that, everything is cached in memory and accessed via HashMaps so that it
is pretty fast. This is true for the current implementation as well -- the only
difference is that it loads the resources for a particular Locale only when you
ask for it.
As a side benefit, we can avoid the class loader bug that currently plagues
Orion 1.4 (workaround: extract the properties files out of struts.jar and put
them under WEB-INF/classes).
For editing convenience, it would be easy to maintain a separate file for each
language, and then concatenate them together in your build script.
>
> thanks,
> frank
>
Craig McClanahan