title: Need help in pagination in jsp
body: <p>I have following ajax code:</p>
  
  <pre><code>function handleServerResponse() {
          alert(xmlhttp.readyState);
          if (xmlhttp.readyState == 4) {
              alert(xmlhttp.status);
              if (xmlhttp.status == 200) {
                  var jason = eval('(' + xmlhttp.responseText + ')');
                  for ( var index = 0; index &lt;= jason.length; index++) {
      document.getElementById('product-data').innerHTML += jason[index].productNumber
                      + jason[index].productType
                      + jason[index].funcDesignation + "&lt;br&gt;";
                  }
              }
  </code></pre>
  
  <p>In my jsp I display the data with the following code:</p>
  
  <pre><code>&lt;td&gt;
  &lt;a href="&lt;portlet:renderURL&gt;&lt;portlet:param name='pageAction' value='Navigation'/&gt;&lt;/portlet:renderURL&gt;"&gt;                     &lt;div&gt;&lt;span id="product-data"&gt;&lt;/span&gt;&lt;/div&gt;          
  &lt;/a&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>I want to implement pagination in this code. Please guide with the simplest way possible. I have gone through few tag libraries available but don't know how it will fit in my logic. </p>