aspose file tools*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Validate  Input Text  Box  in struts" Watch "Validate  Input Text  Box  in struts" New topic
Author

Validate Input Text Box in struts

smitha mulu
Greenhorn

Joined: Aug 18, 2009
Posts: 6
Hello

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
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

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