Meaningless Drivel is fun!
The moose likes Struts and the fly likes struts validation mask Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts validation mask" Watch "struts validation mask" New topic

struts validation mask

ivin jacob

Joined: Apr 05, 2006
Posts: 23
Hi all,

I am not much aware about regular expressions .

I need to restrict user input of a text box to alphabets only

but it may contain space or a dot in beteween lettes .

So how do i write the <var-value> in the validation.xml

Also can anyone paste me a good link where i can study all the regular expressions

Please help.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
I'm not much of a regex expert, either, but here's a link to a good beginning article on regex:

Consultant, Sima Solutions
Ish Ash

Joined: Jul 30, 2006
Posts: 3
Try this, it should work

I agree. Here's the link:
subject: struts validation mask
It's not a secret anymore!