adding pagination to all tables using jtable in jsp

739 Views Asked by At

I have done pagination to a simple table using jtable in jsp.But it only works to that table.I have write a code which will give drop down of all tables present in mysql database.Now how to write pagination code in the way that if i select a table it should display all the data in that table using pagination and CRUD operations from User Interface .I have done it for only one table .Now please give an idea how to make these tables to display the dynamically selected table with pagination.

2

There are 2 best solutions below

0
On BEST ANSWER

Here is the answer for this requirement (stackoverflow.com/questions/27644483/dynamic-fields-using-jquery-in-jtable)

0
On
  1. You will need to generate the jtable configuration on the selection of your table in the dropdown.
  2. Create the jtable configuration for all your table then change (destroy the jtable using $('div1').jtable('destroy') initialize your div with selected table configuration.