File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes servlet-jdbc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet-jdbc" Watch "servlet-jdbc" New topic
Author

servlet-jdbc

harivarma mudunuru
Greenhorn

Joined: Sep 07, 2000
Posts: 8
I am accessing data base using servlets.How can i display ten data items per page?
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
create a session object. Have a counter i;check the condition for for i==10; Any way u are going to use rs.next(). so next time if u click another 10 results will be retrieved
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
I think we need a bit more detail about what you are having problems with. Do you have problems using JDBC? Do you have problems with the Servlet API? Do you have problems installing or configuring servlets or a servlet container? Do you have problems with producing SQL to give to JDBC.
Please let us know which bits you are happy with, so that we can help with the bits which are not clear.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
Consider Paul's rocket mass heater.
 
subject: servlet-jdbc