Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to do the pagination?

 
ramya smitha
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a problem with the pagination. i am getting the data to the JSP through the response from the servlet. Can anyone please help me how to do the pagination? i have thousands of records and i have to show only 14 records per page.

Thanks and Regards,
Ramya
 
haitham raik
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
to solve the pagination problem you may use a request parameter for page number(e.g., pageNo).
when the user enter the URL to visit the page for the first time. the page number parameter will be not exist so you will send the first 14 records. if the user clicked on the next button send the ?pageNo=1 Parameter with the request URL. if you received the pageNo=1 as a parameter you will send the 2nd 14 records.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here are some notes I took on prior discussions ... see if any of them look helpful or inspire other ideas ...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic