开发者

ResultSet to Collection

开发者 https://www.devze.com 2023-02-01 05:35 出处:网络
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 e

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

精彩评论

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