You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by jb...@aiusa.org on 2003/05/06 17:51:17 UTC
Using multiple property files to build resource bundle?
I'm trying to use two sets of files to create my resources bundle, but the
second is not being accessed. I've got one set of files with a bunch of
keys, and then another set that are automatically generated by another
application. I'd like to build one bundle using both sets of files. I
need to then access the bundle both from within my actions and from jstl
format tags. I realize one approach would be to merge the files during
the Ant build, but would like to see if it can be done through the
configuration files. This is what I've tried:
The resource files are:
WEB-INF/classes/resources/
application.properties
application_es.properties
countrynames.properties
countrynames_es.properties
In web.xml I've got:
<servlet>
...
<init-param>
<param-name>application</param-name>
<param-value>resources.application,resources.countrynames</param-value>
</init-param>
...
</servlet>
In struts-config.xml I've got:
<message-resources
parameter="resources.applications,resources.countrynames"/>
The keys from the second resource files aren't being found either inside
the actions or in the jsps.
Any ideas? Or do I need to go to merging them in the Ant build?
Thanks,
Joe Baker
Amnesty International USA