Beginner for Datatable -- Need urgent help.

Beginner for Datatable -- Need urgent help.

sadhatsadhat Posts: 3Questions: 0Answers: 0
edited September 2013 in DataTables 1.9
I used datatable in a java project where I retrieve the data from DB and saved it in arraylist and pass that array list to session. in JSP I am retrieving the data and displaying it but the problem is only one record is getting this datatable effect i.e. below it says "showing 1 to 1 of 1 entries". but I can see all 27 records and only one row is highlighted with color.

Replies

  • brightblueskybrightbluesky Posts: 3Questions: 0Answers: 0
    Is there any code for your table initialization? It will help if you can post an example of your code to use DataTables and a sample of your data.
  • sadhatsadhat Posts: 3Questions: 0Answers: 0
    $(document).ready(function() {
    $('#table_id').dataTable();


    } );


    @import "CSS/demo_table.css";



    This is body tag



    <%
    ArrayList arr = new ArrayList();
    if (null != session.getAttribute("arr1")) {
    arr = (ArrayList) session.getAttribute("arr1");
    %>


    Loan Id
    Drawn Down Amount
    Interest Rate
    Loan Description
    Loan Reference















    <%} else {
    }%>
This discussion has been closed.