aspose file tools*
The moose likes Struts and the fly likes mask validation rule is 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 rule is not working" Watch "mask validation rule is not working" New topic
Author

mask validation rule is not working

Ja vardhan
Ranch Hand

Joined: May 09, 2005
Posts: 169
Hi,

Mask validation rule is not working for me.
I have this entry in my validation.xml:


This is the entry in validator-rules.xml:

And I am also having corresponding entry for the key 'errors.invalid' in my resources file.

Why its not working?

Pls reply me.
Thanks.


Javardhan:
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
When you say "not working", what exactly do you mean? When you enter something that does not match the mask, does it simply not treat it as an error? Or does it redisplay the page with no error message?

Do you have other validations for the same page that are working?


Merrill
Consultant, Sima Solutions
Ja vardhan
Ranch Hand

Joined: May 09, 2005
Posts: 169
Its not at all treating it as an error, its successfully going to next page.
no validation is happening.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
If you change the validation rule to "required", does that validation work? The reason I'm asking is that there are a number of problems that can occur to prevent validation from working. We need to know whether it's a problem with validation in general, or specifically with the mask rule.
 
jQuery in Action, 2nd edition
 
subject: mask validation rule is not working