title: Table scrollbar without changing headers and provide sorting in headers
body: <p>Here is mytable and need the headers to remain while there is a scrollbar only to the results and provide the sorting facility in the name.</p>
  
  <pre><code>&lt;table&gt;
      &lt;tr&gt;
          &lt;td&gt;id&lt;/td&gt;
          &lt;td&gt;name&lt;/td&gt;
          &lt;td&gt;type&lt;/td&gt;
      &lt;/tr&gt;
  &lt;%
      while(resultSet.next())
      {
          %&gt;
          &lt;tr&gt;
          &lt;td&gt;&lt;%=resultSet.getString(1)%&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%=resultSet.getString(2)%&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%=resultSet.getString(3)%&gt;&lt;/td&gt;
      &lt;/tr&gt;
  &lt;%
      }
  %&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>For the scrollbar, I tried to use div but, it showed blank space.</p>
  
  <p>How can I do these two things?</p>