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.
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.
Here are some notes I took on prior discussions ... see if any of them look helpful or inspire other ideas ...
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Every snowflake is perfect and unique. And every snowflake contains a very tiny ad.
Free, earth friendly heat - from the CodeRanch trailboss