title: How to to select records in jquery data table pagination
body: <p>Hi am trying to send all records with in a jquery data table when i click select all(hyperlink) option or i want particular records in particular pages(using checkbox) to server class but the problem is  when i click form submit button I.e Export PDF am getting only the records from current page even though records selected in other pages in jquery data table pagination</p>
  
  <p><strong>Why selected records in different pages of jquery data table are not sent to java class</strong> </p>
  
  <p><a href="https://jsfiddle.net/4n5o3r3e/" rel="nofollow noreferrer">https://jsfiddle.net/4n5o3r3e/</a></p>
  
  <pre><code>&lt;s:form id="downloadStudentDetailsForm" action="downloadStudentDetails" theme="css_xhtml" cssClass="form-horizontal"&gt;
  
  &lt;div class="dataTable_wrapper"&gt;
  &lt;table width="100%" class="table table-striped table-bordered table-hover" id="dataTS"&gt;
  &lt;thead&gt;
  &lt;tr&gt;
  &lt;th&gt;&lt;a href="#" id="bas"&gt;Select all&lt;/a&gt;&lt;/th&gt;
  &lt;th&gt;Student Name&lt;/th&gt;
  &lt;th&gt;Parent Phone&lt;/th&gt;   
  &lt;th&gt;Parent Email&lt;/th&gt;                                                       
  &lt;th&gt;ReferenceID&lt;/th&gt;
  &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
  &lt;s:iterator value="studentRecords"&gt;
  &lt;tr&gt;
  &lt;td&gt;&lt;s:checkbox name="students" cssClass="case chkPassport" fieldValue="%{studentname+' '+phone+' '+email+' '+ref}"  /&gt;&lt;/td&gt;                                                            
  &lt;td&gt;&lt;s:property value="studentname" /&gt;&lt;/td&gt; 
  &lt;td&gt;&lt;s:property value="phone" /&gt;&lt;/td&gt;   
  &lt;td&gt;&lt;s:property  value="email"&gt;&lt;/td&gt;                                                        
  &lt;td&gt;&lt;s:property value="ref" /&gt;&lt;/td&gt;
   &lt;/tr&gt;
   &lt;/s:iterator&gt;
   &lt;/tbody&gt;
   &lt;/table&gt;
   &lt;/div&gt;
   &lt;div class="col-xs-1 "&gt;
   &lt;s:submit cssClass="btn btn-success" value="Export to Excel" id="exl" action="downloadStudentsListINExcel" /&gt;
   &lt;/div&gt;
   &lt;div class="col-xs-3 "&gt;
   &lt;s:submit cssClass="btn btn-danger" value="Export to PDF" id="pdf" action="downloadStudentsListInPDF" /&gt;
   &lt;/div&gt;                                             &lt;/s:form&gt;   
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/8jgLp.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8jgLp.jpg" alt="enter image description here"></a></p>