cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Herbert Hotz <herbert.h...@symmetrix.ch>
Subject ESQL.XSL bug
Date Sun, 12 Nov 2000 13:00:09 GMT
Hi,

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>


BTW: Found this out, because I alo had the effect, that my db queries
     did not produce a result.
     So I forced the driver to produce an error by changing the sql
     SELECT statment and expected to get at least a stacktrace result.

Greetings
Herbert
--
+----------------------+-------------------------------------------+
| Herbert Hotz         | Voice:   +41 1 381 8880                   |
| Symmetrix AG         | Fax:     +41 1 381 2127                   |
| Muehle Tiefenbrunnen | GSM-SMS: +41 79 402 5704                  |
| Seefeldstrasse 231   | URL:     http://www.symmetrix.ch/         |
| CH-8008 Zurich       | E-Mail:  mailto:herbert.hotz@symmetrix.ch |
+----------------------+-------------------------------------------+



Mime
View raw message