cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Spinetti" <m.spine...@pisa.iol.it>
Subject R: esql problem
Date Fri, 06 Jul 2001 13:07:50 GMT
I saw prova_xsp.java and I found this code:
........
while (_esql_query.resultset.next()) {
                this.characters("\n\t\t\t\t\trowNum = ");
                (_esql_query.resultset.getInt("result"))
                this.characters(";\n\t\t\t\t\t");
                if (_esql_connection.use_limit_clause ==
                    0 && _esql_query.max_rows != -1 &&
                    _esql_query.position -
                    _esql_query.skip_rows ==
                    _esql_query.max_rows - 1) {
                  _esql_query.position++;
                  break;
                }
                _esql_query.position++;
              }
........
but I don't see any error. Am I mistake?
Marco


----- Original Message -----
From: JEULIN Olivier <olivier.jeulin@xml-ais.com>
To: <cocoon-users@xml.apache.org>
Sent: Friday, July 06, 2001 2:56 PM
Subject: RE: esql problem


I'm using C1, it was a guess for C2...
Let's try again :) :
 as Chris tolds you, take a look at the generated java file, I bet the ';'
is causing this error (taglibs' elements generate java code and are often
nested in functions call)
Olivier

> -----Message d'origine-----
> De : Christian Haul [mailto:haul@dvs1.informatik.tu-darmstadt.de]
> Envoyé : vendredi 6 juillet 2001 14:49
> À : cocoon-users@xml.apache.org
> Objet : Re: esql problem
>
>
> On 06.Jul.2001 -- 02:30 PM, JEULIN Olivier wrote:
> > Well, esql:get-int needs a column name,
> > so try:  "select count(*) as thecount from..."
> > and use: <esql:get-int column="thecount "/>
>
> That's not true. It takes either a label or a number. So
> <esql:get-int column="1"/> should work (and it's translated correctly
> to _esql_query_resultset.getInt(1). Problem seems to be
> something else.
>
> Marco, have a look at the generated source, line 4816
>
> /usr/local/home/siteadm/download/jakarta-tomcat-3.2.2/work/loc
> alhost_8080%2Fcocoon/org/apache/cocoon/www/elenco/prova_xsp.java
>
> Chris.
>
> --
> C h r i s t i a n       H a u l
> haul@informatik.tu-darmstadt.de
>     fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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




---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Mime
View raw message