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 Soft Skills this week in the Jobs Discussion 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: 9321
    
  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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Validate Input Text Box in struts