You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Tom Hunter <cu...@earthlink.net> on 2003/04/30 15:14:23 UTC

How to Add An Additional Resource Bundle

Hey All,

   I would like to use an additional resource bundle (differently named) in the same way that the application.properties bundle is used. Can anyone tell me what I have to configure to achieve that?


		\WEB-INF\classes\resources

					application.properties
					mybundle.properties

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


RE : How to Add An Additional Resource Bundle

Posted by Claudio Parnenzini <cl...@parnenzini.com>.
In your struts-config.xml:

  <message-resources
parameter="com.exodis.website.tracking.MyNewApplicationResources"
key="MyNewRessource"/>


In your JSP:

  <bean:message key="prompt.MyKey" bundle="MyNewRessource"/>:

Regards

-----Message d'origine-----
De : Tom Hunter [mailto:curmudgeon99@earthlink.net] 
Envoyé : mercredi, 30. avril 2003 15:14
À : struts-user@jakarta.apache.org
Objet : How to Add An Additional Resource Bundle 

Hey All,

   I would like to use an additional resource bundle (differently named)
in the same way that the application.properties bundle is used. Can
anyone tell me what I have to configure to achieve that?


		\WEB-INF\classes\resources

					application.properties
					mybundle.properties

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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.471 / Virus Database: 269 - Release Date: 10.04.2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.471 / Virus Database: 269 - Release Date: 10.04.2003
 


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


RE: How to Add An Additional Resource Bundle

Posted by Mike Jasnowski <mj...@bea.com>.
You can add a line like this to your struts config

  <message-resources key="SERVER_ASSISTANT_MESSAGE"
parameter="serverassistant"/>  The key attribut is optional

-----Original Message-----
From: Tom Hunter [mailto:curmudgeon99@earthlink.net]
Sent: Wednesday, April 30, 2003 9:14 AM
To: struts-user@jakarta.apache.org
Subject: How to Add An Additional Resource Bundle


Hey All,

   I would like to use an additional resource bundle (differently named) in
the same way that the application.properties bundle is used. Can anyone tell
me what I have to configure to achieve that?


		\WEB-INF\classes\resources

					application.properties
					mybundle.properties

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



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


RE: How to Add An Additional Resource Bundle

Posted by Mike Jasnowski <mj...@bea.com>.
And then of course have a properties file named after the value of the
"parameter" attribute.

-----Original Message-----
From: Tom Hunter [mailto:curmudgeon99@earthlink.net]
Sent: Wednesday, April 30, 2003 9:14 AM
To: struts-user@jakarta.apache.org
Subject: How to Add An Additional Resource Bundle


Hey All,

   I would like to use an additional resource bundle (differently named) in
the same way that the application.properties bundle is used. Can anyone tell
me what I have to configure to achieve that?


		\WEB-INF\classes\resources

					application.properties
					mybundle.properties

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



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