struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
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" 

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" <>
29/06/2006 08:24 AM
Please respond to "Struts Users Mailing List"

        To:     "Struts Users Mailing List" <>
        Subject:        Struts Validator, multiple checks on single property

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 
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 

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.

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