You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by chuanjiang lo <lo...@gmail.com> on 2006/02/25 10:13:55 UTC

Changing Result object to Collection

In the DAO class
import javax.servlet.jsp.jstl.sql.Result;

Statement stmt = conn.createStatement ();
String query = "select * from business";
rs = stmt.executeQuery(query);
Result result = ResultSupport.toResult(rs);
...
...

in the action class
Result result = BusinessDAO.getBusinessList();


its working good for me using Result object..
but i would like to use a collections object instead so that i can make use
of the <logic:iterate> tag
any advice?
thanks