struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kishore Senji <kse...@gmail.com>
Subject Re: Single argument to multiple vaildator rules ?
Date Thu, 29 Jul 2004 13:18:46 GMT
If you don't specify the name attribute for arg0, it will become the
default arg value for the different error messages constructed.

so, use <arg0  key="key1"/> 

Thanks,
Kishore Senji.


On Thu, 29 Jul 2004 13:06:18 +0530, ravi.vedala@wipro.com
<ravi.vedala@wipro.com> wrote:
> 
> Hi friends,
> 
>    I have the following requirement.
> 
> <field property="XYZ" depends="required,mask,intRange">
>    <msg name="required" key="key1"/>
>    <msg name="mask" key="key2"/>
>    <msg name="intRange" key="key3"/>
>    <arg0 name="required" key="key1"/>       // How to pass this argument to all
the validtor rules ?
> </field>
> Where the keys in the application.properties read :
> 
> key1=Hello {0} world {1}
> key2=Hi {0} world {1}
> key3=Dear {0} world {1}
> 
> Help would be really appreciated.
> 
> regds
> Ravi
> 
> Confidentiality Notice
> 
> The information contained in this electronic message and any attachments to this message
are intended
> for the exclusive use of the addressee(s) and may contain confidential or privileged
information. If
> you are not the intended recipient, please notify the sender at Wipro or Mailadmin@wipro.com
immediately
> and destroy all copies of this message and any attachments.

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


Mime
View raw message