Rick Reumann wrote the following on 9/17/2004 11:03 AM:

The main reason I like the use of a DispatchAction is in regard to situations where you have multiple buttons on a form.


You know, the more I think about I think I might just go back to using reular ActionForms and not even bother with any of the Dispatch types. For cases where I would have a few extra buttons that would behave differently, I could just check that parameter in the execute method. I know this ends up being a dispatch of sorts, but to me it won't be 'that' bad since 1) I usually don't have that many situations where there are a lot of extra buttons on a form and 2) So what if it acts like a dispatch action? It's only a few extra lines of code creating the if/else checks for the parameter name (Or I can do one check for that dispatch paramater name and if exists just execute that ActionDispatcher class that Niall created ).

I'm still curious on other approaches concerning mutliple buttons that submit a form (that don't involve use of a Dispatch flavor).

--
Rick

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



Reply via email to