cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nostah <>
Subject Re: esql:get-string problem
Date Wed, 07 Mar 2001 16:53:25 GMT
Hello Per,

The "; expected" error message usually means you have to put your xsp
[or whatever] tag [in this case <esql:get-string>] into another to keep
xml well formed. try sth like this:

  <kredit><esql:get-string column="Kredit"/></kredit>

this should help.

Wednesday, March 07, 2001, 2:53:42 PM, you wrote:

PS> Hi

PS> I have the following xml in one of my xml files:

PS> <esql:execute-query>
PS>     <esql:useconnection>sofie_connection</esql:useconnection>
PS>      <esql:query>
PS>         SELECT Kredit FROM ResDataCustomers WHERE UserName=<xsp:expr>...</xsp:expr>
PS>      </esql:query>
PS>      <esql:results><esql:get-string column="Kredit"/></esql:results>
PS> </esql:execute-query>

PS> I get the error message shown below, in my browser when I request the xml. I guess
that it is caused by some Java code generated due the line "<esql:results><esql:get-string
PS> column="Kredit"/></esql:results>". My version of Cocoon (and therefore esql)
is about half a year old, so maby the error has already been corrected.

PS> How do I get rid of the error?
PS> If the answers is "download the latest esql", then my question is: how do I do that?
Is is easy to download the hole Cocoon and install it over my current version, or is it easier
just to
PS> download the newest esql (how do you do that - Im not really into CVS and stuff...)

PS> Thanx 
PS> java.lang.Exception: XSP Java Compiler: Compilation failed for
PS> 114: ';' expected.

PS>                 _esql_session.resultset.getString("Kredit")

PS>                                                            ^

PS> 1 error

PS>         at
PS>         at org.apache.cocoon.processor.xsp.XSPProcessor.process(
PS>         at org.apache.cocoon.Engine.handle(
PS>         at org.apache.cocoon.Cocoon.service(
PS>         at javax.servlet.http.HttpServlet.service(
PS>         at org.apache.tomcat.core.ServletWrapper.handleRequest(
PS>         at org.apache.tomcat.core.ContextManager.service(
PS>         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(
PS>         at
PS>         at

View raw message