You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Shawn Bayern <ba...@essentially.net> on 2002/10/23 07:45:35 UTC

Re: how to close resultset

On Wed, 23 Oct 2002, Mark Goking wrote:

> once you use <sql:query var="test">
> and then <c:forEach>
> 
> is there a way to close that var 'test' ?
>  
> or we just leave it? i think this is a waste of resource

'test' doesn't represent a ResultSet; it represents a temporary cache of
your data, and it will be garbage collected as necessary.  The goal was to
prevent the exposure of hard resources (like database connections) to JSP
page authors -- and thus let page authors avoid having to worry about
resource deallocation.

-- 
Shawn Bayern
"JSTL in Action"   http://www.jstlbook.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>