This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes Displaying results in Jsp Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Servlets
Bookmark "Displaying results in Jsp Servlet" Watch "Displaying results in Jsp Servlet" New topic

Displaying results in Jsp Servlet


Joined: Sep 12, 2002
Posts: 8
I am having problems in creating a search engine type of servlet with Jsp i am retreiving the records through a database but the result set is too large and i want to display only a few like 10 or so at a time with a link to the remaining but do not want to access the database for same query again and again its too heavy Please some one help me in this

Regards<br />Syed Kamran Ali
Juanjo Bazan
Ranch Hand

Joined: Feb 04, 2002
Posts: 231
If you are not dealing with a large set of data, and have no memory problems, you could store the results in a CachedRowSet.
Or you can use the pager tag library.
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
Welcome to the JavaRanch! Please adjust your display name to meet
the JavaRanch Naming Policy. You can change it here.
and welcome to the JavaRanch!
I agree. Here's the link:
subject: Displaying results in Jsp Servlet
It's not a secret anymore!