Re: use multiple resource bundles in Validator

2004-07-10 Thread Cliff
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

2004-07-09 Thread cliff
  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

2004-07-09 Thread Jim Barrows
 -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

2004-07-09 Thread Van
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

2004-07-08 Thread Hanna
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

2004-07-08 Thread Van
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

2004-07-08 Thread Jim Barrows


 -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]