Name each of your submit buttons "action". Now unless you want the submit button values to be method1, method2, etc..., you would have to use LookUpDispatchAction. I believe this allows you to have user friendly submit button values and still invoke the appropriate method. This is done using a translation map which maps the submit button values to the actual method to be invoked. Submit buttons are mutually exclusive, so they guarantee that only the button that was clicked will transmit its name and value.
I'm not currently using LookUpDispatchAction, or I would give you more details. You can find more information on Ted's site or in the archives. robert > -----Original Message----- > From: deepank [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 16, 2002 9:26 AM > To: Struts Users Mailing List > Subject: Using Dispatch Action > > > Hi, > I am new to struts so please dont yell at this basic question > about dispatch action > > I have a single form in my JSP(and a single formbean associated > with its action). > I have to specify which method to invoke in the form's action as usual > > something like <html:form action="doSomething?action=method1"> > > I would like to know how can i invoke methods other than method1 > in the action class. > If i have method2 and i want to invoke it when a user clicks a > button, how can make sure > that method2 gets invoked and not method1, without the ability to > do this, i dont see how dispatch action > is useful > > Deepank > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>