Alternatively make each submit button an indexed property of your form. Depending on how big your form is this migh be an acceptable solution.
Alex. > -----Original Message----- > From: Erik Price [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 29, 2003 9:47 AM > To: Struts Users Mailing List > Subject: Re: [newbie] Nested Beans > > > > [EMAIL PROTECTED] wrote: > > Hello, > > > > I use one form with data of type A and within an iteration of data with > type B. Each member of B has its own submit button thus I can in the > following action do some work with exactly this entry (e.g. make changes > to a database). > > > > Question: how does the action know which button is pressed, if its one > of the list entries or the main submit button of the form? > > Put each submit button into its own <form> element along with a hidden > input field to identify which list entry was sent. > > > Erik > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]