Multiple Submit Buttons problem in Struts2
Posted
by
umesh awasthi
on Stack Overflow
See other posts from Stack Overflow
or by umesh awasthi
Published on 2011-01-01T14:50:20Z
Indexed on
2011/01/01
14:53 UTC
Read the original article
Hit count: 286
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
Thanks in advance
© Stack Overflow or respective owner