cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: Patch that gets the esql sample working with today's Cocoon2 cvs.
Date Wed, 07 Feb 2001 21:03:11 GMT
Peter Haight wrote:
> 
> I kept getting the following error message:
> WARN    41702   [cocoon  ] (Thread-10): ServerPagesGenerator.generate()
> org.apache.cocoon.components.language.LanguageException: Error compiling _esql_xsp:
> Line 466, column 14: Undefined variable or class name XSPUtil at org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:200)
> 
> I'm pretty new to this stuff, so while this patch works, I have no idea
> whether it is correct.

I haven't seen any problems with esql today....
Of course I am always using connections....

> 
> Index: src/org/apache/cocoon/components/language/markup/xsp/java/esql.xsl
> ===================================================================
> RCS file: /home/cvspublic/xml-cocoon/src/org/apache/cocoon/components/language/markup/xsp/java/Attic/esql.xsl,v
> retrieving revision 1.1.2.44
> diff -u -r1.1.2.44 esql.xsl
> --- src/org/apache/cocoon/components/language/markup/xsp/java/esql.xsl  2001/02/06 19:00:46
    1.1.2.44
> +++ src/org/apache/cocoon/components/language/markup/xsp/java/esql.xsl  2001/02/07 20:49:16
> @@ -174,6 +174,11 @@
>        <xsp:include>java.text.DecimalFormat</xsp:include>
>        <xsp:include>java.io.StringWriter</xsp:include>
>        <xsp:include>java.io.PrintWriter</xsp:include>
> +      <xsl:choose>
> +        <xsl:when test="$environment = 'cocoon2'">
> +          <xsp:include>org.apache.cocoon.components.language.markup.xsp.XSPUtil</xsp:include>
> +        </xsl:when>
> +      </xsl:choose>
>        <xsl:if test=".//esql:connection/esql:pool">
>          <xsl:choose>
>            <xsl:when test="$environment = 'cocoon1'">
> @@ -182,7 +187,6 @@
>            </xsl:when>
>            <xsl:when test="$environment = 'cocoon2'">
>              <xsp:include>org.apache.avalon.util.datasource.DataSourceComponent</xsp:include>
> -            <xsp:include>org.apache.cocoon.components.language.markup.xsp.XSPUtil</xsp:include>
>            </xsl:when>
>          </xsl:choose>
>        </xsl:if>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org

Mime
View raw message