Well, I have no CLA but I will contribute what I may.
Beez r 5347 -----Original Message----- From: Dave Newton [mailto:davelnew...@gmail.com] Sent: Monday, January 03, 2011 11:42 AM To: Struts Users Mailing List Subject: Re: Multiple Submit Buttons problem in Struts2 I kind of thought the ability to submit to specific action methods was well-known, but perhaps you're correct, as this thread indicates (to my chagrin). There are a number of things in the wiki that need updating; I'll probably start compiling a list from previous threads and open JIRA issues. The cool thing is that anybody with a CLA on file can help. (The uncool thing is that we get that kind of help more rarely than might be optimal.) Dave On Mon, Jan 3, 2011 at 11:33 AM, Biesbrock, Kevin <biesbrock.ke...@aoins.com > wrote: > Should this be included in documentation as a more complex example of > Struts2? Maybe an example action as well? Just a thought. > > > -Beez > > -----Original Message----- > From: stanl...@gmail.com [mailto:stanl...@gmail.com] > Sent: Sunday, January 02, 2011 5:20 PM > To: Struts Users Mailing List > Subject: Re: Multiple Submit Buttons problem in Struts2 > > How about something like this? > > <s:form namespace="/customer" > > <s:hidden key="domain.id" /> > <s:textfield key="domain.firstName" /> <s:textfield > key="domain.lastName" /> <s:textfield key="domain.address1" /> > <s:textfield key="domain.address2" /> <s:textfield key="domain.city" > /> <s:textfield key="domain.state" /> <s:textfield key="domain.zip" /> > > > <s:submit action="customer_cancel" value="Cancel"/> <s:submit > action="customer_save" value="Save"/> <s:submit action="customer_print" > value="Print"/> </s:if> </s:form> > > Scott > > On Sat, Jan 1, 2011 at 8:53 AM, aum strut <aum.str...@gmail.com> wrote: > > > Hi All, > > > > Trying to work with multiple submit buttons within a single form in > > struts2 application but not able to work. here is the jsp code i am > > using > > > > <tr> > > <td > > class="button"><input type="submit" value="Import" > > > > name="destinationImport" class="button"></td> > > <td > > class="button"><input type="submit" value="Export" > > > > name="destinationExport" class="button"></td> > > </tr> > > > > here is the java part > > > > private boolean destinationImport; > > private boolean destinationExport; and there respective setter > > and getter > > > > but i am sure is that Struts2 type convertor is having problem > > converting the String value to boolean do any one have idea how to > > achieve this > > > > i am using struts-2.2.1 version. > > > > Thanks in advance > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org