How to perform pagination in jsp

前端 未结 3 467
梦谈多话
梦谈多话 2021-01-22 01:39

i need pagination concept to display 15 records. this is my jsp file.

<%
ArrayList al = new ArrayList();
%>
<%!String s;
int i;%>
<         


        
3条回答
  •  庸人自扰
    2021-01-22 02:28

    I am using Display Tag Library and it does everything by fly. Just pass the list into the display:table property and display tag will take care of the rest. You can also use EL with it. It is easy to use and also maintainable.

提交回复
热议问题