title: java jstl populate table data using ajax
body: <p>i implemented a java ee webclient in spring framework. it reads data from a webservice and display records in a table format. on this table, im able to a delete multiple record by selecting the checkbox.</p>
  
  <p>currenty im refreshing the table records using meta refresh. reason is because javascript timer refresh will bring the page to top. it affects the user experience when he/she is viewing record. </p>
  
  <p>when a user select records to be deleted and click delete, a javascript confirm dialog box popup. the problem with using meta refresh is im not able to stop the refresh when the confirm dialog box popup. i tried jquery but it didnt work.</p>
  
  <p>im thinking of implementing ajax to retrieve the records for the table. but how can i implement it efficiently. the records in the table are dynamic. </p>
  
  <p>to add further, i have multiple html tables. for example,</p>
  
  <pre><code>#table 1
  &lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;....&lt;/tr&gt;&lt;/table&gt;
  
  #table 2
  &lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;....&lt;/tr&gt;&lt;/table&gt;
  
  #table 3
  &lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;....&lt;/tr&gt;&lt;/table&gt;
  </code></pre>