Re: a Form with different actions actions

2005-04-15 Thread Frank W. Zammetti
DispatchAction sounds like the right answer here, but remember that good design generally dictates that the shorted a class is, the better. Therefore, you most likely want to have your DispatchAction do not much more than make use of some helper class to do the actual functionality. Aside from ke

Re: a Form with different actions actions

2005-04-15 Thread David Johnson
question: Does this tip apply to the latest version of Struts? I'm using V1.2.4 and I notived this tip references the "perform()" method which as far as I know is deprecated. I implemented this as it recommends, setting parameter="dispatch" in the ActionMapping, but the methods I've created (with

Re: a Form with different actions actions

2005-04-15 Thread David Johnson
GREAT solution!!! Thank you both very much, and of course thanks to Ted H as well! -D On 4/15/05, Rafael Taboada <[EMAIL PROTECTED]> wrote: > Hi. U can use DispatchAction class to have different methods for each > function u have in ur form. > > For different buttons, there is a possibility to u

Re: a Form with different actions actions

2005-04-15 Thread Rafael Taboada
Hi. U can use DispatchAction class to have different methods for each function u have in ur form. For different buttons, there is a possibility to use LookupDispatchAction class. Don't forget to map the keys. On 4/15/05, David Johnson <[EMAIL PROTECTED]> wrote: > All > > I have a large page wi

Re: a Form with different actions actions

2005-04-15 Thread DGraham
uts Users Mailing List cc Subject a Form with different actions actions All I have a large page with a form on it that I need to submit to diffferent actions depending on that the user clicks. For example, I have on this page 0. a list of items the user can select 1-->n of (using checkboxes) 1

a Form with different actions actions

2005-04-15 Thread David Johnson
All I have a large page with a form on it that I need to submit to diffferent actions depending on that the user clicks. For example, I have on this page 0. a list of items the user can select 1-->n of (using checkboxes) 1. a list of graph types, with a "graph chosen now" button (user chooses th