Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to display search results in separate pages?

 
Mark Lau
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Say, in my web-application, a search produces 120 results. How do I display 20 results per page, with a total of 6 pages?
My web-application is done in servlets, JSP, JDBC, Java Beans.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its been a while since we saw this one, wondered when it was coming again
In all seriousness though, you should search for things like paging and resultset in the Servlet, JSP and Servelt forums and find results like this one, as there have been a number of good discussions on the subject.
If you have a problem finding what you want, drop us a line.
Dave.
 
Mark Lau
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, yes. I posted and searched. I found some good replies. Very helpful. But I don't promise I understand all of it. Will get back to you guys soon.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic