This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSP and the fly likes page navigation problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » JSP
Bookmark "page navigation problem" Watch "page navigation problem" New topic

page navigation problem

Tania Sen

Joined: Feb 28, 2010
Posts: 8
here is the servlet fetches the whole table which i store in an ArrayList,which i pass to a jsp page,where i run a for loop and print the contents... it is an announcement page..and i store it in a database which is printed in announcement.jsp page
Now i want that user click's "next" hyperlink and the same page reloads and displays next 10 announcements and so on...similarly i want to use a "previous" page...
i am using an arraylist
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63211

See the JSP FAQ which has an entry on data paging.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
subject: page navigation problem
It's not a secret anymore!