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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
I agree. Here's the link:
subject: Regular expressions in mask
Similar Threads
Validwhen validator question
Struts Validator: Blank JS Alerts
How to practice struts in Eclipse
Problem in Validator framework
problem in using mask validation