DataTables server-side data source doesn't work
DataTables server-side data source doesn't work
Dear everyone,
I've downloaded DataTables latest version. I try to test the server-side example, it doesn't work. I can see the example page, but the data doesn't load. I even try to integrate it into my own web project in JAVA, and the table doesn't show any data.
Below is a sample data returned from JAVA backend:
{"sEcho":0,"iTotalRecords":1,"iTotalDisplayRecords":1,"aaData":[["1","1","1","1","1","1","1","1"]]}
This is the code used to return the data above:
//JAVA Code
arg1.setCharacterEncoding("UTF-8");
arg1.setContentType("application/json");
arg1.getWriter().write(jSonOutput);
I've downloaded DataTables latest version. I try to test the server-side example, it doesn't work. I can see the example page, but the data doesn't load. I even try to integrate it into my own web project in JAVA, and the table doesn't show any data.
Below is a sample data returned from JAVA backend:
{"sEcho":0,"iTotalRecords":1,"iTotalDisplayRecords":1,"aaData":[["1","1","1","1","1","1","1","1"]]}
This is the code used to return the data above:
//JAVA Code
arg1.setCharacterEncoding("UTF-8");
arg1.setContentType("application/json");
arg1.getWriter().write(jSonOutput);
This discussion has been closed.
Replies
Allan