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

mask validation not working

Pranav Sharma
Ranch Hand

Joined: Oct 27, 2003
Posts: 258
My validator.xml contains simple validations for required and mask.

The 'required' works but when I take it off and leave only mask this does not get validated.

Can anyone see why.




my error in the resources file is :
errors.invalid={0} is invalid.
Pranav Sharma
Ranch Hand

Joined: Oct 27, 2003
Posts: 258
I read on the struts website that the validator needs a ^ and $ struts 1.1 onwards, however this does not work either

<var-value>^[a-zA-Z]*$</var-value>
BadalDeepali Garg
Greenhorn

Joined: Jun 13, 2005
Posts: 4
Hi think if u try this
<var>
<var-name>mask</var-name>
<var-value>[a-zA-Z]+</var-value>
</var>
It may wrok for you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: mask validation not working