cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Forge <fo...@neonics.com>
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">
  <xsp:struct.../>
  <xsp:logic>
    // get connection from pool

    // some more code

  </xsp:logic>

  <xsl:apply-templates/>

<!-- new code: -->

  <xsp:logic>
    // release connection
  </xsp:logic>

</xsl:template>


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

How can I make this happen?


Mime
View raw message