cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Forge <>
Subject 'destructor' for generateContent()
Date Sun, 04 Mar 2001 18:14:16 GMT

Hi there,

in my pages I need to get a databaseconnection from a pool
and then release it at the end of the page.

Since I don't want to put a final tag on every page that includes
code to release the connection to the pool,
I tried this in my main xsp taglib:

<xsl:template match="xsp:page">
    // get connection from pool

    // some more code



<!-- new code: -->

    // release connection


However, the 'release connection' code does not appear in the java source.

How can I make this happen?

View raw message