开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜