Search the
JDBC forum for "ResultSet paging", there are several good discussions on it.
Basically you can support it on the database via the query, via the ResultSet by caching the ResultSet, on the Session, or a combination of the solutions.
Be careful about thinking there is a single solution to this problem, you have to evaluate a solution in he context of you problem. Typically you won't store the results on the session because the data is just too heavy. In theory you can put what you want on the session, but it has a large effect on the scalability of your application.
Also,
please check the
Javaranch Naming Rules. Your display is not valid, and accounts with invalid display names get deleted. You can
edit your profile to fix your display name.
thanks,
Dave