> <sql:query dataSource="${foo}" var="bar">
> select ID from table
> </sql:query>
>
> How can I get the recordcount of this query?
In general, getting a recordcount of a query cannot be done until the
rows have been returned. Even the DBMS may not have a reliable count
available as it returns the first rows of the result set.
Also, the solution may be vendor-dependant.
You can always do this:
<sql:query dataSource="${foo}" var="bar_count">
select COUNT(ID) from table
</sql:query>
Regards,
Bill K.