You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Krishna, Mattam (M.)" <mk...@ford.com> on 2006/03/08 14:27:10 UTC

Struts validation and XML Constants

> <form-validation>
> 	<global>
> 		<constant>
> 			<constant-name>phone</constant-name>
> 			<constant-value>^\(?(\d{3})\)?[-| ]?(\d{3})[-|
> ]?(\d{4})$</constant-value>
> 		</constant>
> 	</global>
> 	<formset>
> 		<form name="checkoutForm">
> 			<field property="phone" depends="required,mask">
> 				<arg0
> key="registrationForm.firstname.displayname"/>
> 				<var>
> 					<var-name>mask</var-name>
> 					<var-value>${phone}</var-value>
> 				</var>
> 			</field>
> 		</form>
> 	</formset>
> </form-validation>
>  <ma...@ford.com> 
> What is the meaning of "^\(?(\d{3})\)?[-| ]?(\d{3})[-| ]?(\d{4})$" in
> the above code.?
> 
> Thanks and Regards,
> Krishna Mattam
> Team Member - CDF Toolset
> Contact:044-22548575
> Email: mkrish17@ford.com
> 
>