File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Displaying records through result set meta data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Displaying records through result set meta data" Watch "Displaying records through result set meta data" New topic
Author

Displaying records through result set meta data

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
Hi,



All the things are wroking but the problem is that ArrayList is displaying just one record whereas I have more than 20 records to display. I tried with loop like: i<result.size(); and result.get(i) then its throwing exception


I stuck here for the last more than 2 days. Please help me

Best regards
>
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37936
    
  22
What about some standard debugging information? Put some println statements into your loops, then you can see what is being retrieved.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Displaying records through result set meta data
 
Similar Threads
PreparedStatement (displaying records)
handling with hashtable and sorting
Displaying one to many records from DB
JSP not picking up getAttribute from Servlet
Struts action not returning page on first click of button