cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <ba...@webslingerZ.com>
Subject Re: ESQL.XSL bug
Date Sun, 12 Nov 2000 21:05:50 GMT
On Sun, 12 Nov 2000, Herbert Hotz wrote:

> Donald, there is still somthing wrong in esql.xsl v1.27 :-(
> 
> This does not work:
> 
> <xspdoc:desc>returns the stacktrace of the current exception</xspdoc:desc>
> <xsl:template match="esql:error-results//esql:get-stacktrace">
>   <xsp:expr>_esql_exception_writer.toString()</xsp:expr>
> </xsl:template>
> 
> 
> Replace it with:
> 
> <xspdoc:desc>returns the stacktrace of the current exception</xspdoc:desc>
> <xsl:template match="esql:error-results//esql:get-stacktrace">
>   <xsp:logic>
>    StringWriter _esql_exception_writer = new StringWriter();
>    _esql_exception.printStackTrace(new PrintWriter(_esql_exception_writer));
>   </xsp:logic>
>   <xsp:expr>_esql_exception_writer.toString()</xsp:expr>
> </xsl:template>

thanks, forgot this in my revision. i patched it slightly differently, but
thanks nonetheless. i also checked in some code for changing autocommit to
false in case you want to try to execute a sequence of sql queries
atomically.

- donald


Mime
View raw message