You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Brian DeLuca <bd...@intranet.com> on 2002/08/06 07:40:42 UTC

RE: Multiple .properties files for messages

You need to set a key for one of those entries in the struts config.

<message-resources parameter="CustomResources" key="MY_RESOURCES"/>

Then when you want to use that resource props, you need to reference the
bundle="MY_RESOURCES"

This is because you can only have one resource file with the key of
Action.MESSAGE_KEY which is the default if key is not specified.

hth
b-

-----Original Message-----
From: Matt Raible [mailto:matt@raibledesigns.com]
Sent: Tuesday, August 06, 2002 1:31 PM
To: struts-dev@jakarta.apache.org
Subject: Multiple .properties files for messages



Is it possible to have multiple .properties files for resources - i.e.

    <!-- ========== Message Resources Definitions
=========================== -->
    <message-resources parameter="ApplicationResources"/>
    <message-resources parameter="CustomResources"/>

This doesn't seem to work...

Matt



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Multiple .properties files for messages

Posted by Matt Raible <ma...@yahoo.com>.
That's what I was looking for - thanks!

Matt

--- Brian DeLuca <bd...@intranet.com> wrote:
> 
> You need to set a key for one of those entries in the struts config.
> 
> <message-resources parameter="CustomResources" key="MY_RESOURCES"/>
> 
> Then when you want to use that resource props, you need to reference the
> bundle="MY_RESOURCES"
> 
> This is because you can only have one resource file with the key of
> Action.MESSAGE_KEY which is the default if key is not specified.
> 
> hth
> b-
> 
> -----Original Message-----
> From: Matt Raible [mailto:matt@raibledesigns.com]
> Sent: Tuesday, August 06, 2002 1:31 PM
> To: struts-dev@jakarta.apache.org
> Subject: Multiple .properties files for messages
> 
> 
> 
> Is it possible to have multiple .properties files for resources - i.e.
> 
>     <!-- ========== Message Resources Definitions
> =========================== -->
>     <message-resources parameter="ApplicationResources"/>
>     <message-resources parameter="CustomResources"/>
> 
> This doesn't seem to work...
> 
> Matt
> 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>