R: About multiple Resourcebundles

2004-05-17 Thread Andrea M.
Yes that's the way you access the bundles. 
Your web.xml has nothing to do with message resources 

However... instead of asking will it work? perhaps it would be a better
idea to try it out first, and eventually ask why didn't it work? then  :)

Andrea

-Messaggio originale-
Da: SMETS Thomas [mailto:[EMAIL PROTECTED] 
Inviato: lunedì 17 maggio 2004 11.33
A: Struts Users Mailing List
Oggetto: About multiple Resourcebundles


Dear,

I am struggling a bit with the usage of more than one Resourcebundle in
Struts-config.xml.
I have defined two property files in my classpath : 
_ ApplicationResources.properties
_ ApplicationResources2.properties


The bottom line is (I think) how do I access the messages when I have the
following in my struts-config :

  !-- Defines a Set of Message resources that would be located in
ResourceBundle-like files --
  message-resources
parameter=ApplicationResources
null=false /  

  !-- Defines a Set of Message resources that would be located in
ResourceBundle-like files --
  message-resources
parameter=ApplicationResources2
key=button
null=false /  


What do I write in my jsp's ?
 bean:message bundle=button key=myKey/

Do I need to add something in my web.xml ?

\T,





--
Thomas SMETS
Architect reengineering OEIL
T. : 44375 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: About multiple Resourcebundles

2004-05-17 Thread Harjot Narula
Hi

You dont need anything in web.xml except from config parameter name and
value
which I beleive you would have given.

Just let me know if you are using tiles by any chance.
We had some problems in the application we developed due to tiles.

Just make sure that name of the files in classpath matches the parameter in
message-resources tag

Harjot


- Original Message - 
From: SMETS Thomas [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, May 17, 2004 3:02 PM
Subject: About multiple Resourcebundles



 Dear,

 I am struggling a bit with the usage of more than one Resourcebundle in
Struts-config.xml.
 I have defined two property files in my classpath :
 _ ApplicationResources.properties
 _ ApplicationResources2.properties


 The bottom line is (I think) how do I access the messages when I have the
following in my struts-config :

   !-- Defines a Set of Message resources that would be located in
ResourceBundle-like files --
   message-resources
 parameter=ApplicationResources
 null=false /

   !-- Defines a Set of Message resources that would be located in
ResourceBundle-like files --
   message-resources
 parameter=ApplicationResources2
 key=button
 null=false /


 What do I write in my jsp's ?
 bean:message bundle=button key=myKey/

 Do I need to add something in my web.xml ?

 \T,





 --
 Thomas SMETS
 Architect reengineering OEIL
 T. : 44375

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]