It seems you should put it inside xsp:logic like this
<xsp:logic>
 rowNum = <esql:get-int column="1"/>;
</xsp:logic>
(if C2 is a bit like C1 ;) )
> -----Message d'origine-----
> De : Marco Spinetti [mailto:[EMAIL PROTECTED]]
> Envoyé : vendredi 6 juillet 2001 15:08
> À : [EMAIL PROTECTED]
> Objet : R: esql problem
> 
> 
> 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 <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> 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:[EMAIL PROTECTED]]
> > Envoyé : vendredi 6 juillet 2001 14:49
> > À : [EMAIL PROTECTED]
> > 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
> > [EMAIL PROTECTED]
> >     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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to