wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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: 9291

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
subject: Validate Input Text Box in struts
Similar Threads
Struts Validation - Disabled fields
how to validate html:text without usind validate framework of struts
html:text not supporting non engilsh characters
Dropdown Validation using DynaActionForm
hyperlink calls database