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.