You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Pazhanikanthan Periasamy <Pa...@caritor.com> on 2005/12/21 10:23:50 UTC

Re: Same action with multiple submit buttons

Have a hidden attribute called method.

Assign this param with the method name u need to call in the 
DispatchAction Class based on the Button you have clicked and submit the 
form.

Thanks and regards,
Pazhanikanthan. P
Project Leader,
Caritor (India) Pvt. Ltd.,
Madras - 600 006
Mob: 9886152717
Extn: 40123



"Shiby Maria John" <Sh...@ibsplc.com> 
12/21/2005 03:02 PM
Please respond to
"Struts Users Mailing List" <us...@struts.apache.org>


To
"Struts Users Mailing List" <us...@struts.apache.org>
cc

Subject
Same action with multiple submit buttons







Hi,
Thnaks for the tip reg LookupDispatchAction, but the problem is that I
have the same name for different buttons in the same form.
In that case, how will I know which button submitted that action??




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



Re: Same action with multiple submit buttons

Posted by Srinivasu Gandu <gs...@yahoo.com>.
how funny is that.. why do you want to give the same name to all of your buttons??

Pazhanikanthan Periasamy <Pa...@caritor.com> wrote:  Have a hidden attribute called method.

Assign this param with the method name u need to call in the 
DispatchAction Class based on the Button you have clicked and submit the 
form.

Thanks and regards,
Pazhanikanthan. P
Project Leader,
Caritor (India) Pvt. Ltd.,
Madras - 600 006
Mob: 9886152717
Extn: 40123



"Shiby Maria John" 
12/21/2005 03:02 PM
Please respond to
"Struts Users Mailing List" 


To
"Struts Users Mailing List" 
cc

Subject
Same action with multiple submit buttons







Hi,
Thnaks for the tip reg LookupDispatchAction, but the problem is that I
have the same name for different buttons in the same form.
In that case, how will I know which button submitted that action??




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org






Thanks!
Have a great day!!
Srini
		
---------------------------------
Yahoo! Shopping
 Find Great Deals on Holiday Gifts at Yahoo! Shopping