lundi 19 septembre 2016

How to send multiple field value to struts action class using checkbox

Below is my coding to display data in table format using struts tags, here am successfully phone number field value using checkbox like this .

can anyone suggest how to send two field values like phone and email to struts action class?

code

<table width="100%"class="table table-striped table-bordered table-hover" id="dataTables-example3">
<thead>
<tr>
<th><a href="#" id="selectall">Select all</a></th>
<th>Student Name</th>
<th>Phone</th>
<th>Email</th>
<th>ReferenceId</th>
</tr>
</thead>
<tbody>
<s:iterator value="adminSms">
<tr>
<td><s:checkbox name="phoneNumber" cssClass="case" fieldValue="%{phone}" /></td>
<td><s:property value="studentname" /></td>
<td><s:property value="phone" /></td>
<td><s:property value="email" /></td>
<td><s:property value="ref" /></td>
</tr>
</s:iterator>
</tbody>
</table>




Aucun commentaire:

Enregistrer un commentaire