0
<display:table name="example" class="FORM">
            <display:setProperty name="paging.banner.placement" value="bottom" />
            <display:setProperty name="paging.banner.all_items_found" value=""/>
            <display:setProperty name="paging.banner.onepage" value=""/>
            <display:setProperty name="paging.banner.one_item_found" value=""/>
            <display:column property="userId" sortable="false" title="User ID" headerClass="sortable"/>
            <display:column property="dateAdded" sortable="false" title="Added Date" headerClass="sortable"/>
            <display:column property="statusDate" sortable="false" title="Status Date" headerClass="sortable"/>
            <display:column property="params" sortable="false" title="Parameters" headerClass="sortable"/>
            <display:column property="status" sortable="false" title="Status" headerClass="sortable"/>
        </display:table>

So I have this table in my JSP page. All the data gets set from an ArrayList in a java file like this:

ArrayList options = new ArrayList(); (Has data in it though....)
request.setAttribute("example", options);

How can I just add to this table dynamically? The information comes from an SQL query and I want to just be able to use an offset and add the new data.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Nick Richardson
  • 187
  • 2
  • 9

1 Answers1

0

If you need to add more data dynamically from SQL query, you can make Ajax query and then to add new rows to the current table.

Alex
  • 11,451
  • 6
  • 37
  • 52