File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "mask validation not working" Watch "mask validation not working" New topic

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

BadalDeepali Garg

Joined: Jun 13, 2005
Posts: 4
Hi think if u try this
It may wrok for you
I agree. Here's the link:
subject: mask validation not working
It's not a secret anymore!