You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Riyad Kalla <rs...@email.arizona.edu> on 2004/05/26 22:17:06 UTC

Re: message resource problems

I believe if you have more than one resource file, you need to give them keys. 
The resource file with no key becomes the default, and then the others need 
to be referenced explicity using the "bundleKey" (I think that's the name...) 
attribute of the struts taglibs.

On Wednesday 26 May 2004 01:58 pm, ksitron wrote:
> I introduced the resource bundle errors_en_US.properties into my
> struts-config.xml file.
> Now, all the other declared resource files are ignored, WHY !!
> I ended up moving all declared messages into the
> errors_en_US.properties, and things work again.
> Anyone have any idea why.
>
> Thanks in advance.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: message resource problems

Posted by Riyad Kalla <rs...@email.arizona.edu>.
No problem, glad it worked.

On Wednesday 26 May 2004 02:50 pm, ksitron wrote:
> Thanks Riyad, I think you hit right on the head.
>
> Riyad Kalla wrote:
> >I believe if you have more than one resource file, you need to give them
> > keys. The resource file with no key becomes the default, and then the
> > others need to be referenced explicity using the "bundleKey" (I think
> > that's the name...) attribute of the struts taglibs.
> >
> >On Wednesday 26 May 2004 01:58 pm, ksitron wrote:
> >>I introduced the resource bundle errors_en_US.properties into my
> >>struts-config.xml file.
> >>Now, all the other declared resource files are ignored, WHY !!
> >>I ended up moving all declared messages into the
> >>errors_en_US.properties, and things work again.
> >>Anyone have any idea why.
> >>
> >>Thanks in advance.
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >For additional commands, e-mail: user-help@struts.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: message resource problems

Posted by ksitron <ks...@elp.rr.com>.
Thanks Riyad, I think you hit right on the head.


Riyad Kalla wrote:

>I believe if you have more than one resource file, you need to give them keys. 
>The resource file with no key becomes the default, and then the others need 
>to be referenced explicity using the "bundleKey" (I think that's the name...) 
>attribute of the struts taglibs.
>
>On Wednesday 26 May 2004 01:58 pm, ksitron wrote:
>  
>
>>I introduced the resource bundle errors_en_US.properties into my
>>struts-config.xml file.
>>Now, all the other declared resource files are ignored, WHY !!
>>I ended up moving all declared messages into the
>>errors_en_US.properties, and things work again.
>>Anyone have any idea why.
>>
>>Thanks in advance.
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>
>  
>

-- 

Kevin J Citron
Sr. Object Imagineer
Optimized Objects, Inc.
EL Paso, Texas 79930
(915) 565-7785/566-2403