when you use 2 or more message-resources tags in the struts-config
file, you have to distinguish them with the key attribute
if you don't do this the last one will override the other
<message-resources parameter="com.theCompany.reg.ApplicationResources"
key="application"/>
--- Thomas Gourgon <thomas@tritus.ca> wrote: > Hi, I got this email
from a coworker of mine.
>
>
> Thanks in advance for everyone's time and help.
>
> Thomas
>
> Begin forwarded message:
> >
> > I need to use one properties file for each struts-config module.
> > I'm using the following code:
> >
> > In /configs/reg-struts-config.xml:
> > <message-resources
> > parameter="com.theCompany.reg.ApplicationResources"/>
> >
> > In /configs/ac-struts-config.xml:
> > <message-resources
> parameter="com.theCompany.ac.ApplicationResources"/>
> >
> > There are 2 ApplicationResources.properties files: one is under
> > com/theCompany/reg and another is under com/theCompany/ac.
> >
> > For some reason struts is looking at
> > com/theCompany/ac/ApplicationResources.properties for the variables
>
> > that are
> > related to and located in
> > com/theCompany/reg/ApplicationResources.properties.
> > It looks like struts is not combining all the internationalization
> > variables
> > from several properties files into one pool of variables.
> >
> > Am I doing something wrong? Is there another way to break a huge
> > internalization file into pieces for each struts-config module?
> >
> > Thanks a lot! Appreciate it.
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
__________________________________________________
Yahoo! Plus
For a better Internet experience
http://www.yahoo.co.uk/btoffer
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
|