Thanks for the response.
>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).
This is the problem I'm having w/ the javascript validation in general.
The funcion name that's generated is not correct. It puts the "/" from the
action path in the function name like this " function
validate/saveAuditAssignment(form) { ". I don't know of a work around
other than going to a ValidatorForm or putting the javascript in the JSP
(I'll try the other suggestions). I read at the Struts website that this
is resolved in 1.2 but I can't use it while it's in beta.
Thanks,
Bart
mailto: [EMAIL PROTECTED]
Joe Germuska <[EMAIL PROTECTED]> wrote on 08/24/2004 12:31:54 PM:
> The commons-validator date validation indeed, can only validate a
> single date pattern. Joe Hertz made a good point that you must have
> the multi-format parsing problem solved, so subclassing a
> ValidatorForm will probably be a good solution.
>
> 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]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]