• Post Reply Bookmark Topic Watch Topic
  • New Topic

To do Pagination from arraylist in jsp

 
nilapen suriyan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ArrayList list = (ArrayList)session.getAttribute("data");

for(int i=0; i<list.size(); i++){
Retrieve ret=(Retrieve)list.get(i);
where Retrieve is the form bean.

How to change the above code in jsp to do pagination.Can anyone help me?
[ March 03, 2008: Message edited by: nilapen suriyan ]
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the JSP FAQs for how to implement pagination.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!