cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <o...@vip.net.pl>
Subject Re: Counting rows in a resultset
Date Wed, 28 Aug 2002 07:54:58 GMT
> > ...
> > <xsp:logic>
> > 		int rowCount = 0;
> > ...
> > 		<esql:execute-query>
> > ...
> > 				<esql:row-results>
> > ...
> > 				    <xsp:logic>
> > 					    rowCount++;

try to do select count(*) as row_count from table;

and then in <esql:row-results> do <esql:get-long column="row_count"/>

I'm not 100% sure but this highly probable to work
   ouzo


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.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