struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "cliff612" <cl...@reinfo.com.hk>
Subject Re: use multiple resource bundles in Validator
Date Fri, 09 Jul 2004 02:34:11 GMT
I have tried 1.2 but it cannot work. It only return null. Could you 
tell me how to use it ?

Thx

Here is my config

in config.xml
--------------
<message-resources parameter="resources.ApplicationResources"/>

<message-resources key="clientResources" 
parameter="resources.ClientApplicationResources" />

<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
   <set-property property="pathnames" value="/WEB-INF/validator-
rules.xml, /WEB-INF/validation.xml"/>
</plug-in>

in validation.xml
------------------
<form name ="XXX">
   <field property="clientCountry" depends="required">
      <arg  bundle="clientResources"  key="prompt.country"/>
   </field>
</form>

in ClientApplicationResources.properties
----------------------------------------
prompt.country=ClientCountry


in jsp
-------
<html:javascript formName="XXX" dynamicJavascript="true" 
staticJavascript="false"/>


--- In struts@yahoogroups.com, "Jim Barrows" <jbarrows@s...> wrote:
> 
> 
> > -----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.
> 
> -------------------------------------------------------------------
--
> 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