This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Search Result Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Search Result" Watch "Search Result" New topic
Author

Search Result

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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

Joined: Apr 05, 2000
Posts: 1441
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


The only reason for time is so that everything doesn't happen all at once.
- Buckaroo Banzai
John Wetherbie
Rancher

Joined: Apr 05, 2000
Posts: 1441
I am moving this post to the Servlets & JSPs forum.
John
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Search Result
 
Similar Threads
Input type attribute 'name' query?
displayTag: pagination (link for display all)
retrieving thousand of rows from DB2 database
Staggered search results
Paging: Changing no of results per page in JSP at run time