Yes.
The nightly builds contain a patch I submitted, called LookupDispatchAction.
It keys off of the use of ApplicationResource messages for button labels and
allows reflection to call a different method for each button pressed. The
Javadocs explain it in great detail.
Even without that base class action, you'll get the button label as a
request.getParameter("action") if all your buttons have the name "action".
But using the button label in an Action greatly munges the View with the
Controller and makes things fragile (Java shouldn't break if a button label
is changed in the JSP).
Erik
----- Original Message -----
From: "Lachlan Holmes" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 12, 2001 7:25 PM
Subject: multiple buttons on a form
Is there a way to have multiple submit buttons on a form and be able to tell
which button was pressed in the following action?
Regards,
Lachlan
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>