aLk
aLk

Reputation: 19

ResultSet to Collection

I want to put ResultSet data into something i can forward to a JSP from a Servlet. Should i be looking into getObject() from the ResultSet interface to make a java List? Is there an easier way?

Upvotes: 0

Views: 2788

Answers (2)

Bozho
Bozho

Reputation: 597392

Apache commons-dbutils can be used to easily do this

Upvotes: 1

Priyanjan
Priyanjan

Reputation: 325

use bean classes and set the data accordingly in each bean object. Put bean objects into the Arraylist object and set it into the request object.

Upvotes: 1

Related Questions