displaying data

Hi,

I have a jsp page that retrieves data from mySQL database and displays them all together through a servlet. The problem is that when the data are too many, e.g. hundreds or thousands, the page grows too big. I want to display them like ten in the first page, ten in the second page and so forth so on.

How can I achieve that?

[349 byte] By [andscanda] at [2007-11-27 6:59:18]
# 1
It is a concept called paging.There is more than one solution around. http://displaytag.sourceforge.net/11/ will help you display the results like that.
evnafetsa at 2007-7-12 18:49:52 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...