struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <ravi.ved...@wipro.com>
Subject Single argument to multiple vaildator rules ?
Date Thu, 29 Jul 2004 07:36:18 GMT

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.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message