[Logo] JavaRanch » Big Moose Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » JSP
 
RSS feed
 
New topic
Author

Table pagination for about 40 rows per page

albert kao
Ranch Hand

Joined: Feb 04, 2010
Messages: 66

I use the TableKit javascript library and JSP for displaying scientific data. The size of my data sets are about 100-25000 rows and 5 columns. I would like to display the data for about 40 rows per page. The user can click the "Next" and "Previous" button to go to the next and previous page respectively. The user can go to the page directly by clicking the page number "1", "2", "3", ... button.
Apache DB database and Tomcat server are running on Windows Vista Home.
Should I implement this with TableKit javascript or JSP?
Any sample code or tutorial?

This message was edited 1 time. Last update was at by albert kao

Jeanne Boyarsky
internet detective
Sheriff

Joined: May 26, 2003
Messages: 17206

Albert,
Definitely JSP. Or a tag library for JSP. If you handle it in JavaScript, the JSP has to load thousands of rows of data resulting in a huge, slow webpage going to the user.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]

"The set strikes me as something like the set of potatoes, radishes, farming, and lunch. " - a colleague's way of comparing both overlapping and disparate groups. made me laugh and thought of the ranch
albert kao
Ranch Hand

Joined: Feb 04, 2010
Messages: 66

Any sample code or library or tutorial?
Bear Bibeault
Author and opinionated walrus
Sheriff

Joined: Jan 10, 2002
Messages: 36608

See the FAQ.

[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » JSP
 
RSS feed
 
New topic
The most intelligent Java IDE