Re: How to pull messages from multiple Bundles?

2003-09-17 Thread Thomas Cornet
I'm doing the same thing on my current webapp. You can define as many ressources as you want in your struts-config.xml. Let's define two ressources in your struts-config.xml kile this (the bundle attribute allows to identify ressources) message-resources

Re: How to pull messages from multiple Bundles?

2003-09-17 Thread [EMAIL PROTECTED]
: Wednesday, September 17, 2003 8:04 AM Subject: Re: How to pull messages from multiple Bundles? I'm doing the same thing on my current webapp. You can define as many ressources as you want in your struts-config.xml. Let's define two ressources in your struts-config.xml kile this (the bundle

Re: How to pull messages from multiple Bundles?

2003-09-17 Thread manglu
Thomas, You didn't get the question. I understand that multiple bundles can be used in bean:write or other tags that understand i18n. Question is: Application identifies two errors- errors.invalid (found in bundle1) invalid.amount (found in bundle2) When i create these errors and add it to

Re: How to pull messages from multiple Bundles?

2003-09-17 Thread Thomas Cornet
Oh, excuse me. Looking at the DTDs, it seems that html:errors tag has a 'bundle' parameter, so something like : html:errors bundle=errors property=your_property This should search errors message in the right message ressource, if they are all in the same. Thomas PS : ActionError class just

Re: How to pull messages from multiple Bundles?

2003-09-17 Thread Daniel Wang
I don't believe you can. html:errors or html:messages can only accept a single message bundle. daniel manglu [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thomas, You didn't get the question. I understand that multiple bundles can be used in bean:write or other tags that

Re: How to pull messages from multiple Bundles?

2003-09-17 Thread manglu
Thomas, Thanks. This variant that you are referring to is the one that places the errors to the side of the property that causes trouble. Is that right? I still want a single view at the top which outlines all the errors yet the message can come from multiple bundles. Is this achievable?

Re: How to pull messages from multiple Bundles?

2003-09-17 Thread Thomas Cornet
At 00:37 18/09/2003, you wrote: Thomas, Thanks. This variant that you are referring to is the one that places the errors to the side of the property that causes trouble. Is that right? Yep I still want a single view at the top which outlines all the errors yet the message can come from

Re: How to pull messages from multiple Bundles?

2003-09-17 Thread Daniel Wang
They are the same tablib, i.e. html:errors or html:messages and you can only specify one optional bundle with each of these tags. If you really want to implement this, you can subclass or modify ActionMessage to allow you to specify a message bundle, and subclass ErrorsTag to use the specified

Re: How to pull messages from multiple Bundles?

2003-09-17 Thread Daniel Wang
fmt:setBundle fmt:bundle - Original Message - From: Carlos Sánchez [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 6:53 AM Subject: RE: How to pull messages from multiple Bundles? Another question which I've already asked

RE: How to pull messages from multiple Bundles?

2003-09-17 Thread Carlos Sanchez
Oh, sorry, forget my last post and here's an aswer to your problem (which was also mine) Watch this from thread Multiple message resources with JSTL -Mensaje original- De: Kris Schneider [mailto:[EMAIL PROTECTED] Enviado el: viernes, 12 de septiembre de 2003 16:35 Para: Struts