Multiple resource bundles
Before, I had no problems with this, but all of a sudden, errors appear in my console window. I have 2 resource bundles, one with captions and titles and 1 with error messages. To use them, I found this on the net: fmt:setBundle basename=adminLabels var=adminLabels scope=session / To use a specific resource bundle in my application, I simply had to type: fmt:message key=title bundle=${adminLabels} / So far, so good. Recently, I started to use JSTL 1.1, and now I receive the following error: According to TLD or attribute directive in tag file, attribute bundle does not accept any expressions Can anybody tell me what I'm doing wrong or what I have to do, to make this work? Tia Björn De Bakker This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: Displaying messages from multiple resource bundles
As I mentioned earlier, I do have entries for difference bundles in the struts-config.xml, I have a common Message.jsp which displays a message(s) created during request processing. This message should be picked up from the bundle it belongs to. I don't want to specify the key value here since I want to message to be picked based on the request processed. bean:message bundle=moreResources key=some.message.key/ Regards Anuradha -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 05, 2006 11:12 AM To: user@struts.apache.org; [EMAIL PROTECTED] Subject: RE: Displaying messages from multiple resource bundles Hi Using the struts-config.xml file to configure your message resources is preferred as it gives you quite a bit of additional flexibility: You can list multiple message-resources tags to load messages from multiple files. If you do this, use the key attribute to give a unique name to each bundle. e.g.: message-resources key=myResources parameter=com.systemmobile.example.ApplicationResources/ message-resources key=moreResources parameter=com.systemmobile.example.MoreApplicationResources/ You would then have to give the key name when using the bean:message tag: bean:message bundle=moreResources key=some.message.key/ Kind regards, Rakesh Bhat PrimeSourcing(tm) The Global IT Services business from i-flex - Add Value Reduce Risk www.iflexsolutions.com/services/services.asp i-flex solutions limited - Bangalore Phone : +91(080) 5759-6873 Email : Rakesh.Bhat@ iflexsolutions.com -Original Message- From: Anuradha S.Athreya [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 05, 2006 11:10 AM To: 'Struts Users Mailing List' Subject: Displaying messages from multiple resource bundles Importance: Low I am displaying messages in JSP using resource bundle. I have 2 separate bundles. Depending on the message I would like it to be picked up from the particular bundle to which that message belongs to. How do I specify the multiple bundles? this doesnt seem to work: html:messages bundle=viewmessages id=message message='true' BR bean:write name=message/ /html:messages html:messages bundle=errormessages id=message message='true' BR bean:write name=message/ /html:messages I have defined both these bundles in struts-config.xml message-resources key=viewmessages parameter=resources.application / message-resources key=errormessages parameter=resources.myapperrormessages/ Regards, Anuradha S.Athreya - 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]
Displaying messages from multiple resource bundles
I am displaying messages in JSP using resource bundle. I have 2 separate bundles. Depending on the message I would like it to be picked up from the particular bundle to which that message belongs to. How do I specify the multiple bundles? this doesnt seem to work: html:messages bundle=viewmessages id=message message='true' BR bean:write name=message/ /html:messages html:messages bundle=errormessages id=message message='true' BR bean:write name=message/ /html:messages I have defined both these bundles in struts-config.xml message-resources key=viewmessages parameter=resources.application / message-resources key=errormessages parameter=resources.myapperrormessages/ Regards, Anuradha S.Athreya
RE: Displaying messages from multiple resource bundles
Hi Using the struts-config.xml file to configure your message resources is preferred as it gives you quite a bit of additional flexibility: You can list multiple message-resources tags to load messages from multiple files. If you do this, use the key attribute to give a unique name to each bundle. e.g.: message-resources key=myResources parameter=com.systemmobile.example.ApplicationResources/ message-resources key=moreResources parameter=com.systemmobile.example.MoreApplicationResources/ You would then have to give the key name when using the bean:message tag: bean:message bundle=moreResources key=some.message.key/ Kind regards, Rakesh Bhat PrimeSourcing(tm) The Global IT Services business from i-flex - Add Value Reduce Risk www.iflexsolutions.com/services/services.asp i-flex solutions limited - Bangalore Phone : +91(080) 5759-6873 Email : Rakesh.Bhat@ iflexsolutions.com -Original Message- From: Anuradha S.Athreya [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 05, 2006 11:10 AM To: 'Struts Users Mailing List' Subject: Displaying messages from multiple resource bundles Importance: Low I am displaying messages in JSP using resource bundle. I have 2 separate bundles. Depending on the message I would like it to be picked up from the particular bundle to which that message belongs to. How do I specify the multiple bundles? this doesnt seem to work: html:messages bundle=viewmessages id=message message='true' BR bean:write name=message/ /html:messages html:messages bundle=errormessages id=message message='true' BR bean:write name=message/ /html:messages I have defined both these bundles in struts-config.xml message-resources key=viewmessages parameter=resources.application / message-resources key=errormessages parameter=resources.myapperrormessages/ Regards, Anuradha S.Athreya - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RES: Using multiple resource bundles
This bug exist really and is documented: look in http://struts.apache.org/userGuide/dev_validator.html field property=lastName depends=required,mask msg name=mask key=registrationForm.lastname.maskmsg/ arg0 key=registrationForm.lastname.displayname/ var var-namemask/var-name var-value^[a-zA-Z]*$/var-value /var /field By default the arg0-arg3 elements will try to look up the key attribute in the message resources. If the resource attribute is set to false, it will pass in the value directly without retrieving the value from the message resources. Note that since Struts 1.1, you must explicitly define your message resource in any module that is going to use the Validator, due to a problem accessing the top-level resource. This only effects applications which are using modules. -Mensagem original- De: Duggirala, Satyavati [mailto:[EMAIL PROTECTED] Enviada em: Tuesday, 31 May 2005 8:20 PM Para: Struts Users Mailing List Assunto: RE: Using multiple resource bundles Yes, I am doing that and bean:message works fine. I am having problem only with arg element in validation.xml Is arg element supported in struts1.1 or do we have to use arg0,arg1.. -Original Message- From: Riyaz Mansoor [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 31, 2005 4:12 PM To: Struts Users Mailing List Subject: Re: Using multiple resource bundles seems fine. you should declare your message resource in struts-config with the name mybundle and it should contain the key myField.displayname r u doing that? Duggirala, Satyavati wrote: I am working on a field whose value is an int in the range 0- My code looks in validation.xml looks like this- form name=myForm field property=myField depends=integer,intRange page=1 arg key=myField.displayname bundle=mybundle position=0 / arg1 name=intRange key=${var:min} resource=false/ arg2 name=intRange key=${var:max} resource=false/ varvar-namemin/var-namevar-value0/var-value/var varvar-namemax/var-namevar-value/var-value/var /field /form - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using multiple resource bundles
Hi We use multiple resource bundles in our Application. By default Struts gets the error messages used in validation.xml from default resource bundle. (ex: arg0 key=prompt.username/ prompt.username is obtained from ApplicationResources.properties) How can I make particular field validation error message to be obtained from another resource bundle. (I have prompt.username in a different bundle UsersResources.properties) thanks -Satya
Re: Using multiple resource bundles
arg key=field.displayname bundle=mybundle position=0 / riyaz Duggirala, Satyavati wrote: Hi We use multiple resource bundles in our Application. By default Struts gets the error messages used in validation.xml from default resource bundle. (ex: arg0 key=prompt.username/ prompt.username is obtained from ApplicationResources.properties) How can I make particular field validation error message to be obtained from another resource bundle. (I have prompt.username in a different bundle UsersResources.properties) thanks -Satya - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using multiple resource bundles
Still doesn't work. Is there a element type arg in validation.xml? Can I get any reference from where I could get some more information about using mutiple resource bundles in validator framework? Thanks Satya -Original Message- From: Riyaz Mansoor [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 31, 2005 3:26 PM To: Struts Users Mailing List Subject: Re: Using multiple resource bundles arg key=field.displayname bundle=mybundle position=0 / riyaz Duggirala, Satyavati wrote: Hi We use multiple resource bundles in our Application. By default Struts gets the error messages used in validation.xml from default resource bundle. (ex: arg0 key=prompt.username/ prompt.username is obtained from ApplicationResources.properties) How can I make particular field validation error message to be obtained from another resource bundle. (I have prompt.username in a different bundle UsersResources.properties) thanks -Satya - 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: Using multiple resource bundles
hmm. can post the file? Duggirala, Satyavati wrote: Still doesn't work. Is there a element type arg in validation.xml? Can I get any reference from where I could get some more information about using mutiple resource bundles in validator framework? Thanks Satya -Original Message- From: Riyaz Mansoor [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 31, 2005 3:26 PM To: Struts Users Mailing List Subject: Re: Using multiple resource bundles arg key=field.displayname bundle=mybundle position=0 / riyaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using multiple resource bundles
I am working on a field whose value is an int in the range 0- My code looks in validation.xml looks like this- form name=myForm field property=myField depends=integer,intRange page=1 arg key=myField.displayname bundle=mybundle position=0 / arg1 name=intRange key=${var:min} resource=false/ arg2 name=intRange key=${var:max} resource=false/ varvar-namemin/var-namevar-value0/var-value/var varvar-namemax/var-namevar-value/var-value/var /field /form -Original Message- From: Riyaz Mansoor [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 31, 2005 3:45 PM To: Struts Users Mailing List Subject: Re: Using multiple resource bundles hmm. can post the file? Duggirala, Satyavati wrote: Still doesn't work. Is there a element type arg in validation.xml? Can I get any reference from where I could get some more information about using mutiple resource bundles in validator framework? Thanks Satya -Original Message- From: Riyaz Mansoor [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 31, 2005 3:26 PM To: Struts Users Mailing List Subject: Re: Using multiple resource bundles arg key=field.displayname bundle=mybundle position=0 / riyaz - 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: Using multiple resource bundles
seems fine. you should declare your message resource in struts-config with the name mybundle and it should contain the key myField.displayname r u doing that? Duggirala, Satyavati wrote: I am working on a field whose value is an int in the range 0- My code looks in validation.xml looks like this- form name=myForm field property=myField depends=integer,intRange page=1 arg key=myField.displayname bundle=mybundle position=0 / arg1 name=intRange key=${var:min} resource=false/ arg2 name=intRange key=${var:max} resource=false/ varvar-namemin/var-namevar-value0/var-value/var varvar-namemax/var-namevar-value/var-value/var /field /form - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using multiple resource bundles
Yes, I am doing that and bean:message works fine. I am having problem only with arg element in validation.xml Is arg element supported in struts1.1 or do we have to use arg0,arg1.. -Original Message- From: Riyaz Mansoor [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 31, 2005 4:12 PM To: Struts Users Mailing List Subject: Re: Using multiple resource bundles seems fine. you should declare your message resource in struts-config with the name mybundle and it should contain the key myField.displayname r u doing that? Duggirala, Satyavati wrote: I am working on a field whose value is an int in the range 0- My code looks in validation.xml looks like this- form name=myForm field property=myField depends=integer,intRange page=1 arg key=myField.displayname bundle=mybundle position=0 / arg1 name=intRange key=${var:min} resource=false/ arg2 name=intRange key=${var:max} resource=false/ varvar-namemin/var-namevar-value0/var-value/var varvar-namemax/var-namevar-value/var-value/var /field /form - 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: Using multiple resource bundles
i'm using 1.2.x and 1.3-dev and it works fine. i do remember about an ARG bug in the earlier versions. i suggest u search this mailing list. there might be others who might remember this here. :( Duggirala, Satyavati wrote: Yes, I am doing that and bean:message works fine. I am having problem only with arg element in validation.xml Is arg element supported in struts1.1 or do we have to use arg0,arg1.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using multiple resource bundles
On 5/31/05, Riyaz Mansoor [EMAIL PROTECTED] wrote: i'm using 1.2.x and 1.3-dev and it works fine. i do remember about an ARG bug in the earlier versions. i suggest u search this mailing list. there might be others who might remember this here. If I recall correctly, the bug was that the bundle attribute was not supported in the declarative XML for form validation. I haven't tried it, but, I saw it listed in the release notes for Struts 1.2.7 as supported finally: Release-Notes-Snippet Resource Bundle Support The bundle attribute for the msg and arg elements in the Validator configuration file (e.g. validation.xml) are now supported along with the resource attribute on the msg element. New pages have been added to the struts-examples webapp showing the new Resource Bundle Support and a page for validwhen examples. /Release-Notes-Snippet I suspect that the reason it isn't working for the original poster is because they haven't upgraded to Struts 1.2.7 yet. FYI, Van -- - Mike Van Riper [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
using multiple resource bundles with jstl
Im having trouble figuring out how to use jstl's fmt:message tag to use 2 properties files. Can anyone help? It appears that if i use struts bean tags i can do this pretty easily but i want to stick with JSTL if i can. THjanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using multiple resource-bundles - extending message resources
Hi there, I'm using struts 1.1. Problem: I would like load multiple resource-bundles. Examples would be: adaResources.properties adaResources_sv_SE.properties bedaResources2.properties bedaResources_sv_SE2.properties I've tried to configure struts.config different ways but it seems it's no support for it. The only way I can get it to work the standard way is to add a key for respective bundles. But I don't want to do that. I want the files to be handled as a aggregate file with all properties for adaResources.properties and bedaResources.properties. So that I can reference like bean:message key=customer I do not want to do this: bean:message bundle=appl key=customer Approach: I'm now trying this idea: message-resources factory=loader.JangPropertyMessageResourcesFactory parameter=ApplicationResources className=loader.JangPropertyMessageResourcesConfig set-property property=resourceNames value=xxx,yyy / /message-resources In my factory class I instansiates my own class JangPropertyMessageResources that extends from PropertyMessageResources. When starting up the web-application it's fine but I can't find a way to get a handle to JangPropertyMessageResourcesConfig from JangPropertyMessageResources. How can I do that ? Is there a better way to do this ? thanks in advance = __ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validation using multiple resource bundles
Hi Venkat, I give you these two links that Niall Pemberton gave me one month ago. I think that you can find useful information to solve your problem. aris http://issues.apache.org/bugzilla/show_bug.cgi?id=21760 http://article.gmane.org/gmane.comp.jakarta.struts.user/96384 From: Venkat Maddipati [EMAIL PROTECTED] Validation of data in form fields worked fine when I had only default resource bundle. But, when I started using multiple resource bundles, the validation failed. I tried to specify the value for bundle attribute for the 'arg' elements(s), and 'msg' elements but didn't work. [...] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Validation using multiple resource bundles
Validation of data in form fields worked fine when I had only default resource bundle. But, when I started using multiple resource bundles, the validation failed. I tried to specify the value for bundle attribute for the 'arg' elements(s), and 'msg' elements but didn't work. Following is my environment: Struts 1.2.4 Tomcat 4.1.30 Commons Validator 1.1.3 Using http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd; in validation.xml As per the above DTD, we can specify the value for bundle attribute. When searching on the internet for this problems, on some sites, I found that Validation package doesn't support multiple resource bundles, but only supports default resource bundles. Is that true? Or this was true only with old versions of struts/validators. Here is an example of my field element in validation.xml file: form name=createUserForm field property=userId depends=required,minlength,mask arg position=0 bundle=security key=label.userId/ arg position=1 name=minlength key=${var:minlength} resource=false / var var-nameminlength/var-name var-value5/var-value /var msg name=mask key=userId.maskmsg bundle=security / var var-namemask/var-name var-value^[0-9a-zA-Z]*$/var-value /var /field /form Any help is greatly appreciated. TIA Venkat If you have received this e-mail in error, please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited. Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses. The views expressed here do not necessarily represent those of Hyperion. For more information about Hyperion, please visit our Web site at www.hyperion.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Validator Framework - Multiple Resource Bundles
How can I specify an alternate resource bundle in my Validation.xml to retreive arg0, arg1 I saw so many messages about it but did not find a solution to it. A bug reported (Bugzilla bug 10868) Validator does not support non-default resource bundles. The status is resolved but there is not mention about how I can use it. Any help greatly appreciated. Thanks - Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers!
Multiple Resource Bundles
Hi, I try to use multiple resource bundles that get the strings from a database in an environment using JBoss, Struts and Velocity. I have defined two message-resources in struts-config.xml: message-resources factory=com.bk.web.struts.BKWebStringResourceFactory parameter=StringResources key=Strings/ message-resources factory=com.bk.web.struts.BKWebMessageResourceFactory parameter=ApplicationResources/ During startup of JBoss the createResource() method of both factories is called. But when I call a page on which the strings come from the StringResources bundle the getMessage() method of the ApplicationResources bundle is called. In the HTML code I've placed calls like this (: $msg.get(global.close, StringResources) msg is defined in toolbox.xml: tool keymsg/key classorg.apache.velocity.tools.struts.MessageTool/class /tool What's wrong with my call of $msg.get()? Did I miss anything? Best regards, Ralf. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: use multiple resource bundles in Validator
Thanks a lot. I can do it in jsp but not in validation.xml. I can find bundle is used in http://jakarta.apache.org/commons/dtds/validator_1_1.dtd but it seems cannot work. I'm now try to update the common-validator and try to check what bundle struts is using in JavascriptValidatorTag.java. If anyone have a better idea please tell me. Thanks a lot. --- In [EMAIL PROTECTED], Van [EMAIL PROTECTED] wrote: On Fri, 9 Jul 2004 14:44:08 -0700, Jim Barrows [EMAIL PROTECTED] wrote: -Original Message- From: cliff [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 9:34 PM To: [EMAIL PROTECTED] Subject: RE: use multiple resource bundles in Validator I have tried 1.2 but it cannot work. could anyone tell me how to do ? Well according to http://struts.apache.org/userGuide/struts- bean.html#message It should be something like: bean:message key=duhKey bundle=duhBundleWidDuhKey/ Thanks a lot From: Jim Barrows [EMAIL PROTECTED] Date: Fri Jul 9, 2004 4:37 am Subject: RE: use multiple resource bundles in Validator -Original Message- From: Van [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 1:12 PM To: Struts Users Mailing List Subject: Re: use multiple resource bundles in Validator On Thu, 8 Jul 2004 18:18:41 +0800, Hanna [EMAIL PROTECTED] wrote: How can i use mulitple message bundles in validator in struts 1.1? like the way of bean:message key=... bundle=.../ ? No. Not in 1.1... 1.2 you can. I was being a little flippant with my initial one word response of No. Partially, this was due to my own irritation when I learned that it was not possible to specify bundles for property lookups in my validator configuration files for 1.1. I have heard rumblings about this possibly being added to the commons validator though. You would want to check which version of the commons validator is included with the version of Struts you are using and then check to see whether that version of the commons validator supports the bundle attribute. If it is not easy to glean from the project docs, take a gander at the DTD for the validation configuration files in the version you are using to see whether the bundle attribute is allowed or not. The commons validator project home page is here: http://jakarta.apache.org/commons/validator/ Good luck and please report back to the list in the event that you find out the bundle support has been added in a recent version of commons validator. Thanks, Van Mike Van Riper mailto:[EMAIL PROTECTED] Silicon Valley Web Developer JUG https://sv-web-jug.dev.java.net/ (a.k.a. Sillicon Valley Struts User Group) http://www.baychi.org/bof/struts/ --- -- 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: use multiple resource bundles in Validator
I have tried 1.2 but it cannot work. could anyone tell me how to do ? Thanks a lot From: Jim Barrows [EMAIL PROTECTED] Date: Fri Jul 9, 2004 4:37 am Subject: RE: use multiple resource bundles in Validator -Original Message- From: Van [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 1:12 PM To: Struts Users Mailing List Subject: Re: use multiple resource bundles in Validator On Thu, 8 Jul 2004 18:18:41 +0800, Hanna [EMAIL PROTECTED] wrote: How can i use mulitple message bundles in validator in struts 1.1? like the way of bean:message key=... bundle=.../ ? No. Not in 1.1... 1.2 you can.
RE: use multiple resource bundles in Validator
-Original Message- From: cliff [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 9:34 PM To: [EMAIL PROTECTED] Subject: RE: use multiple resource bundles in Validator I have tried 1.2 but it cannot work. could anyone tell me how to do ? Well according to http://struts.apache.org/userGuide/struts-bean.html#message It should be something like: bean:message key=duhKey bundle=duhBundleWidDuhKey/ Thanks a lot From: Jim Barrows [EMAIL PROTECTED] Date: Fri Jul 9, 2004 4:37 am Subject: RE: use multiple resource bundles in Validator -Original Message- From: Van [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 1:12 PM To: Struts Users Mailing List Subject: Re: use multiple resource bundles in Validator On Thu, 8 Jul 2004 18:18:41 +0800, Hanna [EMAIL PROTECTED] wrote: How can i use mulitple message bundles in validator in struts 1.1? like the way of bean:message key=... bundle=.../ ? No. Not in 1.1... 1.2 you can. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: use multiple resource bundles in Validator
On Fri, 9 Jul 2004 14:44:08 -0700, Jim Barrows [EMAIL PROTECTED] wrote: -Original Message- From: cliff [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 9:34 PM To: [EMAIL PROTECTED] Subject: RE: use multiple resource bundles in Validator I have tried 1.2 but it cannot work. could anyone tell me how to do ? Well according to http://struts.apache.org/userGuide/struts-bean.html#message It should be something like: bean:message key=duhKey bundle=duhBundleWidDuhKey/ Thanks a lot From: Jim Barrows [EMAIL PROTECTED] Date: Fri Jul 9, 2004 4:37 am Subject: RE: use multiple resource bundles in Validator -Original Message- From: Van [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 1:12 PM To: Struts Users Mailing List Subject: Re: use multiple resource bundles in Validator On Thu, 8 Jul 2004 18:18:41 +0800, Hanna [EMAIL PROTECTED] wrote: How can i use mulitple message bundles in validator in struts 1.1? like the way of bean:message key=... bundle=.../ ? No. Not in 1.1... 1.2 you can. I was being a little flippant with my initial one word response of No. Partially, this was due to my own irritation when I learned that it was not possible to specify bundles for property lookups in my validator configuration files for 1.1. I have heard rumblings about this possibly being added to the commons validator though. You would want to check which version of the commons validator is included with the version of Struts you are using and then check to see whether that version of the commons validator supports the bundle attribute. If it is not easy to glean from the project docs, take a gander at the DTD for the validation configuration files in the version you are using to see whether the bundle attribute is allowed or not. The commons validator project home page is here: http://jakarta.apache.org/commons/validator/ Good luck and please report back to the list in the event that you find out the bundle support has been added in a recent version of commons validator. Thanks, Van Mike Van Riper mailto:[EMAIL PROTECTED] Silicon Valley Web Developer JUG https://sv-web-jug.dev.java.net/ (a.k.a. Sillicon Valley Struts User Group) http://www.baychi.org/bof/struts/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
use multiple resource bundles in Validator
How can i use mulitple message bundles in validator in struts 1.1? like the way of bean:message key=... bundle=.../ ?
Re: use multiple resource bundles in Validator
On Thu, 8 Jul 2004 18:18:41 +0800, Hanna [EMAIL PROTECTED] wrote: How can i use mulitple message bundles in validator in struts 1.1? like the way of bean:message key=... bundle=.../ ? No. -- - Mike Van Riper [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: use multiple resource bundles in Validator
-Original Message- From: Van [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 1:12 PM To: Struts Users Mailing List Subject: Re: use multiple resource bundles in Validator On Thu, 8 Jul 2004 18:18:41 +0800, Hanna [EMAIL PROTECTED] wrote: How can i use mulitple message bundles in validator in struts 1.1? like the way of bean:message key=... bundle=.../ ? No. Not in 1.1... 1.2 you can. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]