aspose file tools*
The moose likes Struts and the fly likes Unable to validate Mask attribute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Unable to validate Mask attribute" Watch "Unable to validate Mask attribute" New topic
Author

Unable to validate Mask attribute

Dhan Raj
Greenhorn

Joined: Jan 24, 2005
Posts: 12
Hi

Following is the code in validation.xml, I am not getting an error message for MASK attribute validations. Please Help!

<field property="size" depends="maxlength,mask">
<!-- This Field is Required, Numeric and MaxLength=3 -->
<arg0 key="aPDForm.size"></arg0>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
<arg1 name="maxlength" key="${var:maxlength}" resource="false"/>
<var><var-name>maxlength</var-name><var-value>4</var-value></var>
</field>
Jason Menard
Sheriff

Joined: Nov 09, 2000
Posts: 6450
"Java Ranch",

Your display name is in violation of the JavaRanch naming policy which you should have read when you signed up for an account. Please have another look at it in case you missed it the first time and then change your display name in order to comply. Failure to do so may result in the disabling of your account. Thanks in advance and we look forward to seeing you around the Ranch.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to validate Mask attribute