File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
validation for alpha letters using mask
Joined: Jul 21, 2008
Oct 09, 2008 22:35:00
I do validation in
using validation.xml. I have a field in which user can enter only alphabetical letters. It should not allow any numbers or any charactters other than alpha letters.
I put the following code.
But it allows the words like 'asdf123'. I need the validation that allow only alpha letters like 'aasdf'.
How I can do this, Can anyone help on this.
Joined: Sep 07, 2008
Oct 10, 2008 06:36:00
You have messing some Syntax. so no problem this is definitely solve your problem.
^ - Character indicates starts with alphabet and *$ indicated multiple entry accept this so use this insted of your Code.
Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD
I agree. Here's the link:
subject: validation for alpha letters using mask
validation part is not working in my stuts.
Struts validation regular expressions
Validation Problem #2
Validator Issue with multiply beans
problem in using mask validation
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013