I want to delete all those rows which get selected by the checkboxlist, but i am clueless how to do it...I am very new to
struts.
Also, i don't have any idea of the `name` attribute of checkboxlist, is it important? do I need to have a getter setter for that name attribute?
Kindly put some light on this...
<tr>
<td class="tabletextcont"><s:checkboxlist name="checkbox" list="functionThatGeneratesAList"/></td>
<s:iterator value="functionThatGeneratesAList">
<td class="tabletextcont"><s:property value="val1" /></td>
<td class="tabletextcont"><s:property value="val2" /></td>
<td class="tabletextcont"><s:property value="val3" /></td>
<td class="tabletextcont"><s:property value="val4"/></td>
<td class="tabletextcont center">
<s:url id="deleteAllSelectedByCheckbox" action="Delete" escapeAmp="false">
<s:param name="prop1" value="%{val1}" />
<s:param name="prop2" value="%{val2}" />
<s:param name="prop3" value="%{val3}" />
<s:param name="prop4" ><s:property value="%{val4}"/></s:param>
<s:param name="prop5" value="val4" />
</s:url>
<s:a href="%{deleteAllSelectedByCheckbox}" cssClass="deleteLinks" onclick="showConfirmationBox('%{deleteAllSelectedByCheckbox}');return false;"><img alt='<s:text name="command.delete"/>' border="none" src="<s:url value="/images/delete2.gif"/>"/></s:a>
</td>
</s:iterator>
</tr>