The design pattern I am most familiar with is to copy the ResultSet into an ArrayList of beans, and then use logic:iterate or the display tag library to render the results.
The "display" taglib can be found at http://edhill.its.uiowa.edu/display/ If this doesn't satisfy your request, you might try the struts-user mailing list. Matt > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:mvc-programmers- > [EMAIL PROTECTED]] On Behalf Of David Chu > Sent: Friday, June 21, 2002 7:23 AM > To: [EMAIL PROTECTED] > Subject: [MVC-Programmers] Newbie: pass ResultSet to JSP? > > I am trying to get my head around this struts framework for the first > time. > I am confused about the best/standard way to access data from a JSP. > > - Let's say I want a page list_items.jsp. > - I have access to a bean that has a method that returns the results of a > database query as a ResultSet object. > - How should I iterate through the rows of the bean? > - Complication: my jsp complains that the ResultSet object has been closed > (because I closed the query) > > Is this the prefered encapsulator of data that I should be accessing > through > my JSP? Hopefully I can use the <struts-logic:iterate> tag. > > Thanks for helping out a new struts developer! > > -david > > ------------------------------ > David C. Chu > America Online > Network Tools Intern > ------------------------------ > > > _______________________________________________ > MVC-Programmers mailing list > [EMAIL PROTECTED] > http://www.basebeans.com:8081/mailman/listinfo/mvc-programmers _______________________________________________ MVC-Programmers mailing list [EMAIL PROTECTED] http://www.basebeans.com:8081/mailman/listinfo/mvc-programmers