Struts2 Plugin not able to completing DataTable Populate ----

Struts2 Plugin not able to completing DataTable Populate ----

umeshkumeshk Posts: 1Questions: 0Answers: 0
edited March 2012 in DataTables 1.8
Hi,

I am new to this forum. I am writing a Struts2 application that is populating datatable. Table population is very slow (in IE it takes around 7 min to populate 15000 records ( 15000 rows and Five Columns). I need pagination, sorting and search functionality used. Since time for iteration in JSP is too long for page to load, I decided to process data on Server Side.

[code]


$(document).ready(function() {
$('#orgTable').dataTable({
"bServerSide": true,
"bJQueryUI": true,
"sAjaxSource": "jsonaction",
"bProcessing": true,
"sPaginationType": "full_numbers"
});
} );


[/code]

I am seeing Struts Action [quote] jsonaction [/quote] is getting invoked (from logs) but page loaded with blank DataTable. Table printed with no tbody. I am seeing processing indicator (since "bProcessing": true defined) on page with table skeleton.

[code]







Full Name
First Name
Last Name
User ID
Status









[/code]

Page loads good if I goes from normal with "bServerSide": false and population tbody with iteration.

I checked code project : [quote] http://www.codeproject.com/Articles/190718/jQuery-DataTables-and-J2EE-web-application-integra [/quote] . But no luck.

Can someone point me to right resource with example of Struts2 using DataTables.

Thanks,
Umesh

Replies

  • gerennegerenne Posts: 30Questions: 0Answers: 0
    Hi!!

    I have the same problem, Did you find the problem?

    Thanks in advance.
This discussion has been closed.