• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Displaying results in Jsp Servlet

 
kamran
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Juanjo Bazan
Ranch Hand
Posts: 231
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2823
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
kamran
Welcome to the JavaRanch! Please adjust your display name to meet
the JavaRanch Naming Policy. You can change it here.
Thanks!
and welcome to the JavaRanch!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic