struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Siggelkow <bills...@bellsouth.net>
Subject Re: How to specify which resource file to use in validation.xml?
Date Wed, 01 Sep 2004 15:22:06 GMT
IIRC, the Validator can only pull from the default message resources -- 
that is the one configured without a "key".

Bill Siggelkow

PC Leung wrote:

> I have two resources files. 
> How can I specify which resource file to use in validation.xml?
> 
> 
>   <message-resources
>       parameter="com.erp.quotation.ApplicationResources"
>       key="quotation"
>       null="false" />    
> 
>   <message-resources
>       key="user"
>       parameter="com.security.user.ApplicationResources"
>       null="false" />    
> 
> 
> Validation.xml:
>          	     <msg name="mask" key="error.loginForm.passwordmsg"/>
>          	     <arg0 key="addUserAccountForm.password2"/>


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


Mime
View raw message