Meaningless Drivel is fun!
The moose likes JSP and the fly likes Need help in Data Paging/Pagination ! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Need help in Data Paging/Pagination !" Watch "Need help in Data Paging/Pagination !" New topic

Need help in Data Paging/Pagination !

Shikhar Vasisht

Joined: Jul 24, 2011
Posts: 9

I have gone through many data paging/pagination tutorials over the internet. But i do not have the knowledge of beans and also i know very little about JSTL.

Are both of these important to understand data paging/pagination?

if not can someone please help me in implementing it. I have knowledge of jsp, servlet and jdbc etc.

Also, i am looking for dynamic paging (new request to database every time to fetch rows).

I simple want to fetch rows from database and display them in jsp using data paging/pagination technique.

Is there any simple way of implementing it?? (without or little knowledge of beans and JSTL)

Lalit Jugran

Joined: Jan 05, 2011
Posts: 6
Hi Shikhar Vasisht,

try to create your own paginator with your logic. like don't display the whole result on jsp at a time, fetch the data from database based on some parameter(as no. of record to display, start index, last index).

Shikhar Vasisht

Joined: Jul 24, 2011
Posts: 9
Hi Lalit Jugran,

Thanks for the prompt reply.

However, i am totally new to JSTL and Beans.

You suggested me to create the paginator, but is it a tag or what?

I need guidance on this man.

If you can tell me how to create the paginator and then how to use it in the jsp, it would be beneficial.

If you can provide some sample code, it would be highly appreciated.

Tarun Bolla
Ranch Hand

Joined: Jun 20, 2011
Posts: 89
Hi...I have written a blog entry regarding this...Please go through it....
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

However, i am totally new to JSTL and Beans.

These are both essential technologies to understand in order to do anything in JSP. Do not just blunder ahead without learning these very important technologies.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Need help in Data Paging/Pagination !
It's not a secret anymore!