struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alberto A. Flores" <aaflo...@gmail.com>
Subject Re: best way to handle multiple buttons in a form?
Date Thu, 14 Feb 2008 01:25:32 GMT
Have you tried using the "method" attribute (of the tag)?

akinss 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
>>
>>
>>
>>
>>
> 

-- 

Alberto A. Flores
http://www.linkedin.com/in/aflores



Mime
View raw message