wood burning stoves 2.0*
The moose likes JSP and the fly likes Page Navigation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Page Navigation" Watch "Page Navigation" New topic
Author

Page Navigation

Bindu Sanju
Greenhorn

Joined: Feb 23, 2006
Posts: 16
Hi,
Any body please help me, how to do the paging in jsp. Plese send me some body sample code for that.

Regards,
Sanju.
[ May 28, 2007: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60765
    
  65

What do you mean by "paging"? Do you mean breaking up the display of long lists of database records into pages? Or simply traversing from page to page in a web page?

If the former, there is s JSP FAQ on the subject. If the latter, you use the <a> tag just like any other HTML page.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bindu Sanju
Greenhorn

Joined: Feb 23, 2006
Posts: 16
HI,
Paging means suppose if I fetch the 100 rows. I want to make 100 rows in 10 pages. Each page 10 rows. First,Next,Previous,Last. based on selection I want to display.

Hope will get the positive response from you guys,

Sanju.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60765
    
  65

There is s JSP FAQ on the subject. Please read it.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Page Navigation
 
Similar Threads
EJB & Java Beans
problem in displaying appropriate error message
I have create a new plug in project and I would like use that plug in my eclipse
Sent collection through URL
RMH book page 49