cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Thilo Mueller <thi...@fachschaft.informatik.tu-darmstadt.de>
Subject Re: Generic Table printout for Oracle ORDBMS
Date Sat, 17 Apr 2004 18:06:15 GMT
Dear Christian,

thank you very much for your answer. I already had tried both ways
before but I couldnt reach the result I am heading at.

Im using the esql example to print out table column name number i.

> <esql:get-column-name>
>    <esql:param name="column"><xsp:expr>i</xsp:expr></esql:param>
> </esql:get-column-name>

If I replace this i with a 1, everything is fine. If I define int 1=1
outside of the <content> then it gives me an error:

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
esql_xsp: ERROR 1
(org\apache\cocoon\www\samples\databases\xsp\esql_xsp.java): ... default:
this.characters("\n "); // start error (lines 588-588) "String literal is
not properly closed by a double-quote"
XSPObjectHelper.xspExpr(contentHandler,
_esql_query.getResultSet().getMetaData().getColumnName(" // end error i
")); this.characters("\n\n\t"); ... Line 588, column 0: String literal is
not properly closed by a double-quote

Which says nearly nothing to me.

Any ideas ?

Thank you,

Thilo

---------
more detailed code sample

  <page>
   <title>A Database Driven XSP Page</title>
    <resources>
       <resource type="file"
href="../transform/sql-page.xml.sql">Schema</resource>
       <resource type="doc" href="userdocs/xsp/esql">ESQL</resource>
    </resources>

<xsp:logic>
int i=1;
</xsp:logic>


   <content>

   <esql:connection>
     <esql:pool>personnel</esql:pool>

<para>

Die Zahl i hat den Wert <xsp:expr>i</xsp:expr>

</para>
<para>
  Generische Tabellenausgabe
</para>


       <para>
           Spaltenname
       </para>

       <esql:execute-query>
         <esql:query>select * from employee</esql:query>
         <esql:results>
            <esql:get-column-name>
		<esql:param name="column">
		<xsp:expr>i</xsp:expr>
		</esql:param>
	    </esql:get-column-name>

	</esql:results>
       </esql:execute-query>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message