struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@software.ramapuram.in
Subject How to validate MobileNumber using regex Expression
Date Wed, 12 Dec 2007 11:14:17 GMT
iam validating mobile number using the regex Expression
 But even though iam giving a valid number,
its showing invalid number message

<field-validator type="fieldexpression">
               <param name="expression">
                 (cityLedger.contactDetails.mobileNumber.matches('^(\?([0-9]{3})?([0-9]{4}|[0-9]{4})$'))
               </param>
               <message key="errors.phone"/>
           </field-validator>
      </field>
Ginu

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


Mime
View raw message