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()?
|
- Re: JDBC Statement tag: connection scope Brent Johnson
- Re: JDBC Statement tag: connection scope Morgan Delagrange
- Re: JDBC Statement tag: connection scope Brent Johnson
- Re: JDBC Statement tag: connection scope Morgan Delagrange