struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Van <van.ri...@gmail.com>
Subject Re: use multiple resource bundles in Validator
Date Sat, 10 Jul 2004 01:28:45 GMT
On Fri, 9 Jul 2004 14:44:08 -0700, Jim Barrows <jbarrows@sssc.com> wrote:
> > -----Original Message-----
> > From: cliff [mailto:cliff@reinfo.com.hk]
> > Sent: Thursday, July 08, 2004 9:34 PM
> > To: struts-user@jakarta.apache.org
> > 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@dev.java.net
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@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message