It's not a secret anymore!
The moose likes HTML, CSS and JavaScript and the fly likes Displaying scrollable table in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Displaying scrollable table in jsp" Watch "Displaying scrollable table in jsp" New topic

Displaying scrollable table in jsp

pvsr rao
Ranch Hand

Joined: Oct 05, 2005
Posts: 102
In my Project I have one requirement.I should display a scrollable table that should display 5 rows.when i scroll it should display the other to do this.I Have searched the google but unable to found the solution.If any one had done thisplease reply
Michael Ku
Ranch Hand

Joined: Apr 20, 2002
Posts: 510
What other rows? I do not understand your question?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63343

You could display the table in an iframe, or you could display it in a div with a fixed height and the overflow CSS property set to auto.
[ August 01, 2007: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jetendra Ivaturi
Ranch Hand

Joined: Feb 08, 2007
Posts: 159
Even I m struck with the same problem. But I got successed in displaying records 5 per page. Here I m using next and previous buttons to display.

[Please read this ]
[ August 03, 2007: Message edited by: Bear Bibeault ]

SCJP 1.4 & 1.5, SCWCD 1.5. Learn and Let Learn.
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1183
Good link -

I got exactly five rows by making the changes in bold -

William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
I agree. Here's the link:
subject: Displaying scrollable table in jsp
jQuery in Action, 3rd edition