agree!!!!! but i still believe coupling the form value with action component is never a good idea.. so still believe the first approach was was better.
Though i switched to second myself :) On Sat, Jan 1, 2011 at 9:38 PM, Dave Newton <davelnew...@gmail.com> wrote: > I think any time there's documentation that's 4+ years old you can't > necessarily rely on it being accurate. > > Dave > > On Sat, Jan 1, 2011 at 10:29 AM, aum strut <aum.str...@gmail.com> wrote: > > > i was just refreing the following document > > http://struts.apache.org/2.0.14/docs/multiple-submit-buttons.html > > > > since it was mentioned that second approach will make action code > depedent > > with the form > > > > > > On Sat, Jan 1, 2011 at 8:48 PM, Dave Newton <davelnew...@gmail.com> > wrote: > > > > > S2 would have no idea how to convert "Import" to a true or false value. > > > > > > Dave > > > > > > On Sat, Jan 1, 2011 at 9: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 > > > > > > > > > >