Prev 1-10 Next
、などのページネーション リンクが必要Prev 11-20 Next
です。arList という配列リストがあり、300 レコードを保持しています。最初の 10 レコードを最初に表示する必要があります。次だけをクリックしながら、次の 10 を表示する必要があります。
リンクやリソースを共有できる人はいますか?
ArrayList arList = new ArrayList();
arList = // calling method to retrieve elements
// table starts here
<table id="tbl">
for(int i=0; i < arList.size();i++)
{
HashMap hMap=(HashMap)arList.get(i);
firstVal= (String)hMap.get("first");
secondVal= (String)hMap.get("second");
%><tr><td>
// firstVal and secondVal goes here
</tr></td><%
}
</table>