File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Validate  Input Text  Box  in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Validate  Input Text  Box  in struts" Watch "Validate  Input Text  Box  in struts" New topic

Validate Input Text Box in struts

smitha mulu

Joined: Aug 18, 2009
Posts: 6

we are using the struts framework. I need to validate in input Text Box that it takes string value BN7890

First two are letters and last four are dights

how it can be done on struts
Ankit Garg

Joined: Aug 03, 2008
Posts: 9347

You'll need to use regular expression validator, creating a regular expression for what you want shouldn't be a big problem...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
I agree. Here's the link:
subject: Validate Input Text Box in struts