Please define "not working".
It is your datatable and page so that nobody else can access it.
You have to get meaningful error message to know what went wrong. That includes checking the parameters (are they present and valid), catching exceptions (like
SQLException (Java Platform SE 7 )[
^] thrown by database access functions), and checking return values of functions which indicate errors through the return value rather than throwing exceptions.
By the way: There is no
thread
HTML tag (should be probably
thead
).