cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Gallardo" <agalla...@agsoftware.dnsalias.com>
Subject [XSP] ESQL wrong value using esql:results//esql:get-row-position
Date Sat, 20 Dec 2003 17:59:57 GMT
Hi:

We are trying to get the row count of the resultset. For this we are
getting the value of

esql:results//esql:get-row-position

<esql:results>
  <esql:row-results>
  ... some work ...
  </esql:row-results>
  <xsp:logic>
    count = <esql:get-row-position/>;
  </xsp:logic>
</esql:results>

NOTE: I am reading the tag AFTER the esql:row-results element and the
returned value is wrong.

Using a simple counter we know there are just 3 rows, but the tag
<esql:get-row-position/> is returing 5.

Why?

Best Regards,

Antonio Gallardo

Mime
View raw message