Re: JSTL row count

2002-05-07 Thread Paul DuBois
>I would suggest using stored procedures to get exactly the number of row >you want. Transferring more data than you need in a query takes time as >mentioned in earlier replies from everyone. Other issues are related to >connection pooling and scalability. If you're query returns several >hundred

Re: JSTL row count

2002-05-07 Thread peter lin
I would suggest using stored procedures to get exactly the number of row you want. Transferring more data than you need in a query takes time as mentioned in earlier replies from everyone. Other issues are related to connection pooling and scalability. If you're query returns several hundred or t

Re: JSTL row count

2002-05-06 Thread Shawn Bayern
Just to amplify what Hans said, the reason that retrieving a row count isn't problematic in JSTL is that the exposed interface ("Result") is designed to cache rows. Effectively, JSTL does "count the rows as you fetch them," and ${result.rowCount} simply resolves to the internal counter we keep.

Re: JSTL row count

2002-05-06 Thread Hans Bergsten
Paul DuBois wrote: > At 14:57 -0700 5/6/02, Hans Bergsten wrote: > >> Paul DuBois wrote: >> >>> After issuing a SELECT query with , you can access the row >>> count with ${rs.rowCount} (where rs is the result set variable). >>> >>> However, in other APIs such as Perl DBI, the equivalent construct

Re: JSTL row count

2002-05-06 Thread Paul DuBois
At 14:57 -0700 5/6/02, Hans Bergsten wrote: >Paul DuBois wrote: >>After issuing a SELECT query with , you can access the row >>count with ${rs.rowCount} (where rs is the result set variable). >> >>However, in other APIs such as Perl DBI, the equivalent construct >>is deprecated because some driver

Re: JSTL row count

2002-05-06 Thread Hans Bergsten
Paul DuBois wrote: > After issuing a SELECT query with , you can access the row > count with ${rs.rowCount} (where rs is the result set variable). > > However, in other APIs such as Perl DBI, the equivalent construct > is deprecated because some drivers do not return a count reliably; > the recom

JSTL row count

2002-05-06 Thread Paul DuBois
After issuing a SELECT query with , you can access the row count with ${rs.rowCount} (where rs is the result set variable). However, in other APIs such as Perl DBI, the equivalent construct is deprecated because some drivers do not return a count reliably; the recommended course of action is to c