Why not use the method attribute of the tag?  This allows you to "wire" a
button to a method on the action.

On Feb 13, 2008 6:47 PM, akinss <[EMAIL PROTECTED]> wrote:

>
> Yep I've had the same problem and it has been registered in the Struts 2
> jira.
>
> https://issues.apache.org/struts/browse/WW-2362
>
> Not sure how to work around it though.
>
> Steve
>
>
> Jason Dolinger wrote:
> >
> > Hi all,
> >
> > I'm new to Struts 2 (and Struts in general), and I'm having a hard time
> > figuring out how to handle the simple case of multiple buttons within a
> > form.  The method I'm trying to use is described in the Struts 2
> cookbook
> > here:  http://struts.apache.org/2.x/docs/html-form-buttons-howto.html.
> >
> > I've copied these verbatim (along with a small struts.xml to wire them
> > up), and both button boolean fields always remain false.  Should this
> > work?  I'm using Struts 2.0.11.  There's always the route of using
> > Javascript to detect which button was clicked, but I'd rather avoid it
> if
> > not necessary.
> >
> > I've also seen mention of a Struts LookupDispatcher or MapDispatcher.
>  Is
> > there something similar in Struts 2?
> >
> > Thanks, any input is greatly appreciated!
> >
> > Regards,
> > Jason
> >
> >
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/best-way-to-handle-multiple-buttons-in-a-form--tp15151826p15471656.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Scott
[EMAIL PROTECTED]

Reply via email to