Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Validate Input Text Box in struts

 
smitha mulu
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9527
32
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll need to use regular expression validator, creating a regular expression for what you want shouldn't be a big problem...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic