Using datatables with Ajax + JSP + Struts.

Using datatables with Ajax + JSP + Struts.

hemanthkumar1990hemanthkumar1990 Posts: 7Questions: 0Answers: 0
edited November 2012 in General
Hi,

I have implemented pagination using DataTables v1.9. But the issue what I'm facing now is that page is getting loaded with whole data and then pagination is getting applied. Due to this there is time gap where my page is distracted with a lengthy table when loaded. Is there any other way I can use Datatables for pagination either by Ajax calls or something like that. I'm using JSP front-end on struts frame work.

Thanks!
Hemanth

Replies

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    See the documentation here: http://datatables.net/usage/#data_sources . Yes, DataTables can get data from an Ajax source.

    Allan
  • hemanthkumar1990hemanthkumar1990 Posts: 7Questions: 0Answers: 0
    Hi allan, thanks for the quickest response. Actually I'm trying to use fnServerData() but the problem is that I'm using JSP but not PHP. What can be solution when using JSP pages?
This discussion has been closed.