tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brent Johnson" <>
Subject JDBC Statement tag: connection scope
Date Wed, 02 May 2001 14:48:45 GMT
The statement tag gets its connection as follows inside of doStartTag():
Connection conn = (Connection)pageContext.getAttribute(_connId);

This means that the connection must be defined at PAGE_SCOPE.  This seems a bit restrictive.
 What if my connection isn't at page scope?  Is there a reason why the statement tag doesn't
use pageContext.findAttribute()? 

View raw message