--- Mark Galbreath <[EMAIL PROTECTED]> wrote:
> I send elements of the ResultSet to a String[] and pass it to the
> presentation tier.

The problem was that the ResultSet couldn't fit in memory so it had to be
displayed as it was read.  Storing in a String[] is no better than using
DTOs in this situation.

David

> 
> Mark
> 
> -----Original Message-----
> From: David Graham [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, August 12, 2003 12:43 PM
> 
> You can't store a ResultSet in an HttpSession because it's not
> Serializable.
> If you can't fit the result into memory, I would create an Iterator
> implementation that loops over a ResultSet and pass that to the
> presentation
> tier (Servlet or JSP) for rendering.  That way you isolate the data
> retrieval details (ie. ResultSet) from the next layer.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to