Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

pagination in JSP/servlet

843841Dec 13 2004 — edited May 22 2007
Hi Guys

I need some pagination in my JSP page, I looked thru the forums , found a lot of solutions. The only solution I can do is to keep the result in a collection object and store it in the session and page thru it.

I would like to bring only the data that need to be displayed, if one page is 20 rows bring only 20 rows. The problem I have is the order on which the data is displayed is on descending order of one column which can have a lot of duplicate values. For eg: the total number of lines in an order.

In this case , I donot know how to get the next page /prev page data depending on the last row of the current page..

Does anyone has come across this scenario and have a solution??

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 19 2007
Added on Dec 13 2004
5 comments
490 views