Thanks, that goes some way...but not all the way though. A common situation where a dynamic page displays 0....n items with different identifiers. For example, an item list is fetched from database, and page contains delete buttons for items 23, 67, 101 and 128. I do not think you can use this approach to solve that problem. You would have to magically create getDeleteItem23, getDeleteItem67....methods in your class.

I'm surprised that this kind of common problem is not handled internally by the framework, and there is a need to use quite strange workarounds (get - methods that modify state of the form).


From: Michael McGrady <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: help with multiple submit buttons
Date: Tue, 10 Aug 2004 04:59:49 -0700

At 04:49 AM 8/10/2004, you wrote:
Quite often I need to implement a form that has several submit buttons - for example a page where several products are listed, and next to each product is a "delete" -button.
Does struts provide some sort of help to this problem? I have to say I am quite surprised if it does not!

http://wiki.apache.org/struts/StrutsCatalogMultipleImageButtonsWithNoJavaScript



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to