This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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: 726
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: 36598
    
  16
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
JSP not picking up getAttribute from Servlet
Displaying one to many records from DB
handling with hashtable and sorting
Struts action not returning page on first click of button
PreparedStatement (displaying records)