If I am reading you correctly, you are saying to use that for one field. Which is actually what I just did. EG: <global> <constant> <constant-name>phone</constant-name> <constant-value>^\(?(\d{3})\)?[-| ]?(\d{3})[-| ]?(\d{4})$</constant-value> </constant>
but the client wants to see 3 textfield boxes separated with hyphens, etc. So that is where I ran into issues. I was trying to ensure that textfield1 had 3 digits, then textfield2 had 3 digits and then textfield3 had 4 digits. something the client wants. I did fall back to one textfield curently to move forward. I guess I could write my own validator and be done. Thanks, On 2/21/07, Dave Newton <[EMAIL PROTECTED]> wrote:
Regexp ("mask") validator? http://struts.apache.org/1.2.9/userGuide/dev_validator.html --- Jim Reynolds <[EMAIL PROTECTED]> wrote: > Best way to validate a phone that has 3 textfields. > > Scope wants 3 textfields (areacode, phoneexchange, > phone4) on a form. > We need to validate that the phone has all digits in > each of the > fields. But upon looking at the docs, I do not see a > clean way to > handle this. > > I am sure this is done often, and possibly there is > a recipe somewhere > for this. Using the validator framework. > > Thanks, > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > ____________________________________________________________________________________ Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]