Correct me if I am wrong, I don't know if this is ever possible. If the
validation method in ActionForm class returns a not null ActionErrors
obj, the flow will direct to "input" page, so if you really want to
invoke something in this case, my bet is that you have to put that logic
inside your ActionForm.validate method?

Any idea?

Thanks,
Yuanbo


-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of GMaine
Sent: Friday, May 14, 2004 12:31 PM
To: [EMAIL PROTECTED]
Subject: Using DispatchActions with validation


I have a DispatchAction with two methods. I pass a hidden field "method"
in my form, to determine which method should be called. But I want to
override this and call a specific method if the form's validation fails.

Is it legitimate to put this in the action mapping?
    input="/myAction.do?method=myMethod"

Or could this conflict with the "method" hidden field?

Jacob




---------------------------------------------------------------------
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]

Reply via email to