Re: Multiple submit buttons in the same form

2004-05-29 Thread None None
remove one important piece of scripting. And it seemed like it might be useful information in the context of this thread. From: Riyad Kalla <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subje

Re: Multiple submit buttons in the same form

2004-05-29 Thread Riyad Kalla
Rick, This is a great approach as well and I think we've giving good answers. 1 way you change the Form, and another way you change the Action. I didn't know you could do it the way you described, thanks for the tip! Rick Reumann wrote: Riyad Kalla wrote: 1) Yes you can do it 2) Given each button

Re: Multiple submit buttons in the same form

2004-05-29 Thread Rick Reumann
Riyad Kalla wrote: 1) Yes you can do it 2) Given each button a different value, like "List Products" and "List All Products" 3) Add a "buttonValue" (or some other adequetly names) property to your form for the respective action, it will capture the button clicked. 4) In your action: if(form.getB

Re: Multiple submit buttons in the same form

2004-05-29 Thread Riyad Kalla
1) Yes you can do it 2) Given each button a different value, like "List Products" and "List All Products" 3) Add a "buttonValue" (or some other adequetly names) property to your form for the respective action, it will capture the button clicked. 4) In your action: if(form.getButtonValue().equals