I am using Validator in struts for field level Validation, The validation criterion is length should be exactly 9 characters and can take either of the patterns described below
pattern 1: all 9 characters are Numbers
pattern 2: 1st character is an Alphabet and rest 8 characters are Numbers
What is the shortest way of achieving this validation?
Raghavendra Vema SCJP 1.4 SCBCD 1.3
posted 10 years ago