Forums Register Login

Jsp Paging

+Pie Number of slices to send: Send
i am using a sql querry to retrive the rows of data from the database.I want that data to be displayed in various pages that is if the number of rows is greater than 10,it will show previous,1,2,3,next hyperlinks.When the user clicks "next" hyperlink in the main page another 10 row of data is to be displayed in another page.Likewise when 100 rows will be there then it is displayed in 10 pages, 10 rows per page and all the pages contains links to previous and next pages.please give me details with how to implement it with source code.
+Pie Number of slices to send: Send
Hi :

Use the displaytag Taglib from
displaytag.sourceforge.net/

It has all you need and much more.

This is an example of using it - after you have got the JAR File and all
<!-- Tag Lib directive -->


where requestScope.billItemsList is a MAP-List-primitive array of beans etc and has been put in the requestScope.

It will give you not only pagination that you are looking at but also automatic sorting, downloading - as CSV, pdf, EXCEL, html - and many more things you can explore from the Website.

Chetan
+Pie Number of slices to send: Send
Please be sure to check the JSP FAQ to see if your question has already been addressed.
+Pie Number of slices to send: Send
can you please give me the clear and brief coding of the jsp paging?
+Pie Number of slices to send: Send
Did you read the FAQ?
Danger, 10,000 volts, very electic .... tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1399 times.
Similar Threads
jsp
Pagin
Add values of a column
Pagination Using Struts
paging for dynamic rows
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 15, 2024 23:04:27.