You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by "Agrawal, Anuj (Anuj)** CTR **" <ag...@lucent.com> on 2002/03/02 18:18:52 UTC

recordcount?

After using the JSTL <sql:query var="myQuery"> action, is there an easy way
to obtain myQuery.recordcount?  Basically a count of the number of records
returned by the query.

Anuj.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: recordcount?

Posted by Shawn Bayern <ba...@essentially.net>.
On Sat, 2 Mar 2002, Agrawal, Anuj (Anuj)** CTR ** wrote:

> After using the JSTL <sql:query var="myQuery"> action, is there an
> easy way to obtain myQuery.recordcount?  Basically a count of the
> number of records returned by the query.

Yes:  myQuery.size.  The 'Result' interface that <sql:query> exposes
contains a getSize() method, which translates to a 'size' property.

--
Shawn Bayern
Author, "JSP Standard Tag Library"  http://www.jstlbook.com
(coming this spring from Manning Publications)


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>