struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paz.perias...@axa.com.au
Subject Re: Struts Validator, multiple checks on single property
Date Wed, 28 Jun 2006 22:36:52 GMT
Add the three validator formset like:

        <form name="formName">
            <field property="field" depends="required, maxlength, mask, 
...">
                 <arg0 name="required" key="key.firstName" 
resource="true"/> 
            </field>
        </form>



Thanks and regards,
Pazhanikanthan. P (Paz)

Consultant for AXA,
HCL Australia Services Pty. Ltd.
Off   : +61-3-9618-4085
Mob : +61-0411-354-838




"Mississippi John Hurt" <johnhurt@gmail.com>
29/06/2006 08:24 AM
Please respond to "Struts Users Mailing List"

 
        To:     "Struts Users Mailing List" <user@struts.apache.org>
        cc: 
        Subject:        Struts Validator, multiple checks on single property


Hi,
How can I use the validator plugin to validate a property with a compound
rule such as the property must be both
1) 9 digits long
2) contains an uppercase letter
3) contains a symbol
I know how to do each individually, but how to make it validate where all 
3
have to be true for success? Thanks.


_____________________________________________________________________ 
This e-mail has been scanned for viruses by MCI's Internet Managed 
Scanning Services - powered by MessageLabs. For further information 
visit http://www.mci.com


*********************************************************************************
Important Note
This email (including any attachments) contains information which is 
confidential and may be subject to legal privilege.  If you are not 
the intended recipient you must not use, distribute or copy this 
email.  If you have received this email in error please notify the 
sender immediately and delete this email. Any views expressed in this 
email are not necessarily the views of AXA.   Thank you.
**********************************************************************************

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message