struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ravi Garg" <>
Subject RE: How to map multiple submit actions for a single form
Date Fri, 18 Jul 2003 04:01:08 GMT
Hi Praadep,
	Whenever you click on any of the button then you can call some
javascript function. In that funct you can write ..

document.<formname>.action ="abc";
So now your form gets submitted and the logical address given by it is
abc. There must be according mapping in struts-config.xml for this
logical name.
So in this way you can change your action on click of each button and
submit the form.


-----Original Message-----
From: pradeep bhargav [] 
Sent: Friday, July 18, 2003 9:24 AM
Subject: How to map multiple submit actions for a single form

Hi All,

     I'm creating a basic struts application. In my application, I'm 
showing a list of products available to the user. In this page, I'm
4 buttons New, Modify, Delete, Cancel. Now all these are submit buttons
but I'm having a single form. Now, how can I map the submit actions to 
different pages in struts config. I'm also attaching the jsp file. Can 
anyone please suggest how to solve this problem.

    I also want to use a checkbox to select a record to perform modify
delete action on the selected record. Can anyone plz tell me how to
achieve this??


Pradeep Bhargav


MatrixOne India
Scandent Group

Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message