title: Java taglib for pagination purpose
body: <p>I'm trying to use JSTL to create a pagination in my existing JSP code but I am not sure about the following syntax which I've seen in one of the examples.</p>
  
  <pre><code>    &lt;sql:setDataSource var="dataSrc"
       url="jdbc:oracle:thin:@127.0.0.1:1521:database_name"
       driver="oracle.jdbc.driver.OracleDriver"
       user="user_name" password="pass_word"/&gt;
  </code></pre>
  
  <p>Then you run a query:</p>
  
  <pre><code>    &lt;sql:query var="queryResults" dataSource="${dataSrc}"&gt;
      select system_id, employeename from employees
      &lt;/sql:query&gt;
  </code></pre>
  
  <p>Then, you display the results on the web page:</p>
  
  <pre><code>    &lt;table&gt;
      &lt;tr&gt;
      &lt;th&gt;ID&lt;/th&gt;....
  </code></pre>
  
  <p>My question is <code>&lt;sql: query var="queryResults"</code> is this a standard syntax I must use or what do I put inside this <code>query var= ?</code> and also the <code>dataSource ="{dataSrc}"</code> is this a standard code or must I modify this?</p>
  
  <p>If someone can direct me to a source example of how to display my tables or rows limited to 10 on each page I'd be very grateful.</p>