struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cliff" <cl...@reinfo.com.hk>
Subject Re: use multiple resource bundles in Validator
Date Sat, 10 Jul 2004 01:42:39 GMT
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 struts@yahoogroups.com, Van <van.riper@g...> wrote:
> On Fri, 9 Jul 2004 14:44:08 -0700, Jim Barrows <jbarrows@s...> 
wrote:
> > > -----Original Message-----
> > > From: cliff [mailto:cliff@r...]
> > > Sent: Thursday, July 08, 2004 9:34 PM
> > > To: struts-user@j...
> > > 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" <jbarrows@s...>
> > >       Date:  Fri Jul 9, 2004  4:37 am
> > >       Subject:  RE: use multiple resource bundles in Validator
> > >
> > >
> > >
> > >
> > >
> > >       > -----Original Message-----
> > >       > From: Van [mailto:van.riper@g...]
> > >       > 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 <hanna@r...> 
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:van_riper@d...
> 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: user-unsubscribe@s...
> For additional commands, e-mail: user-help@s...


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


Mime
View raw message