From: "Vicky" <[EMAIL PROTECTED]>
>
> But having different actions in struts-config. how
> would I call them in my jsp html:form ? because right
> now I have only one action in jsp <html:form
> action="myAction"> and then for each button i have
> property="method".. in jsp
>
> in struts-config for this action mapping I have
> parameter="method"
>
> Did I miss anything in here?

DynaValidatorActionForm wants to validate based on the path, so you have to
give it different paths to work with.  If you can't or don't want to have
different paths mapped to the same action and form, then a different
solution is in order.

I doubt you are alone... I wonder if someone has written a flavor of
ValidatorForm that uses the dispatch parameter to switch validation.  None
comes to mind, but search the list archives and the Wiki to see if there is
already something out there.

And of course you're always free to override 'validate' in your form bean
and make it do exactly what you want, or to turn off automatic validation
altogether and call it from your Action when and where you want it to
happen.

If you're having trouble deciding what the best approach would be, tell us
more about your project and I'm sure there will be no shortage of opinions.
(Hey, Mark, welcome back! So, tell us how you REALLY feel about Validator...
;) )

-- 
Wendy Smoak


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to