ResultSet to Collection
I want t开发者_如何学编程o 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?
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.
Apache commons-dbutils can be used to easily do this
精彩评论