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()? 

 

 

 

Reply via email to