Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Search Result

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to display results from data base per page basis so that user can see only 20/10 results per page and he can go back and forth for more results.
Basically i want to give previous and next button in my HTML which I am generating with servlet.
Pls tell me How I can Implement
this.
 
John Wetherbie
Rancher
Posts: 1449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could have the servlet use JDBC directly or talk to a bean to get the data from the database. You could do this in one shot or go back to the DB every time you want to see more results.
However, this would seem to be more appropriate in the Servlet & JSP forum or the Java in Genral (intermediate) forum.
Also, please review the JavaRanch naming policy and re-register with a name that follows the policy.
Thanks,
John
 
John Wetherbie
Rancher
Posts: 1449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am moving this post to the Servlets & JSPs forum.
John
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic