However, I don't understand your other comment:
I don't have the javascript validation available because I'm using ValidatorActionForm. It seems like my options are to switch to ValidatorForm or code javascript in the JSP.
the javascript is independent of whether you are using ValidatorActionForm or ValidatorForm (don't worry, this is one of the things that confuses a lot of people.) You can specify the action path in the <html:javascript> tag instead of the form name, and the javascript tag will work fine -- basically, html:javascript looks for the literal value from "<form name="..."> in the Validator XML config -- whether it be a form name (ValidatorForm, DynaValidatorForm) or an action path (ValidatorActionForm, DynaValidatorActionForm).
Hope that helps, Joe
At 11:58 AM -0400 8/24/04, [EMAIL PROTECTED] wrote:
When I search the archive I get no results for the word "date" so here goes.
I've been using the validation plug-in to validate the date format of MM/dd/yyyy. A new requirement is to allow the user to enter a date in one of several formats(mmddyy, mm/dd/yyyy, and others). Can the validator do this or will I have to write my own validation? I tried multiple datePattern vars in the validation.xml but as expected only one worked. I don't have the javascript validation available because I'm using ValidatorActionForm. It seems like my options are to switch to ValidatorForm or code javascript in the JSP. Experienced opinions would be appreciated as I'm learning as I go here.
Thanks, Bart
mailto: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "In fact, when I die, if I don't hear 'A Love Supreme,' I'll turn back; I'll know I'm in the wrong place."
- Carlos Santana
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]