It's not a secret anymore!*
The moose likes Struts and the fly likes Regular expressions in mask Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Regular expressions in mask" Watch "Regular expressions in mask" New topic

Regular expressions in mask

Grishma Dube
Ranch Hand

Joined: Jul 01, 2003
Posts: 275

I'm using struts validator for validating inputs in text box. I've defined a genericMask

<constant-value>^[a-zA-Z0-9 ]*$</constant-value>

an using this mask for validation. I want to add some special chars such as -/# to this mask. But whenever I'm adding this, the validator is not validating properly and giving me invalid input validation error on each field using genericMask.

Can someone help me in resolving this problem.


Grishma Dube
Ranch Hand

Joined: Jul 01, 2003
Posts: 275
I got it........thanx
wood burning stoves
subject: Regular expressions in mask
Similar Threads
problem in using mask validation
How to practice struts in Eclipse
Validwhen validator question
Problem in Validator framework
Struts Validator: Blank JS Alerts