Return-Path: X-Original-To: apmail-tomcat-taglibs-user-archive@www.apache.org Delivered-To: apmail-tomcat-taglibs-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CB1FD1106A for ; Thu, 25 Sep 2014 08:51:52 +0000 (UTC) Received: (qmail 13763 invoked by uid 500); 25 Sep 2014 08:51:52 -0000 Delivered-To: apmail-tomcat-taglibs-user-archive@tomcat.apache.org Received: (qmail 13728 invoked by uid 500); 25 Sep 2014 08:51:52 -0000 Mailing-List: contact taglibs-user-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tag Libraries Users List" Delivered-To: mailing list taglibs-user@tomcat.apache.org Received: (qmail 13716 invoked by uid 99); 25 Sep 2014 08:51:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Sep 2014 08:51:52 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of miyauchk@gmail.com designates 209.85.212.178 as permitted sender) Received: from [209.85.212.178] (HELO mail-wi0-f178.google.com) (209.85.212.178) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Sep 2014 08:51:25 +0000 Received: by mail-wi0-f178.google.com with SMTP id z2so8893405wiv.17 for ; Thu, 25 Sep 2014 01:51:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ofICHjG737HD32eNEI6bPbtJQoCXrf2ApwB9lwReyo4=; b=V5VIWK7Fl5DK5/nq4YdCNkoDjEBOzYM/nBCtTTgG8LswJUquS0mt8kvFfFNsOpMV0V Z36r5swy9SXn9uORvNt2k3UkJL5CJaskmMivK1zy5zaWuArfwlIoWVw41M1UXOCwygGZ SOZAKxUrJ367+r79Es4i3XeezY530XcotpaOHJZOMH70TwpWX9X+eeeMjTozx/p9EnC0 4l13JthLEIp49etZrUJAn9QScbBmH6zTXpfzQfrVFjiCaGMY9KIwR/5ves0c7gnm2c9U WHeXx4ZrcCVYcCch4bkkHxVOY/h/Xnvpe44Li2XU43ocKQo3s/Pg1SPZfos2IZ57rRJH 1TEw== MIME-Version: 1.0 X-Received: by 10.194.78.101 with SMTP id a5mr1561065wjx.118.1411635084961; Thu, 25 Sep 2014 01:51:24 -0700 (PDT) Received: by 10.194.87.164 with HTTP; Thu, 25 Sep 2014 01:51:24 -0700 (PDT) In-Reply-To: References: Date: Thu, 25 Sep 2014 17:51:24 +0900 Message-ID: Subject: Re: Easy get method of record number From: Kazuaki Miyauchi To: Tag Libraries Users List Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org 2014-09-24 22:46 GMT+09:00 Stuart Thiel : > However, taglibs aside, I understand your concern. The main reason is > that the ResultSet can start getting processed immediately under some > conditions, thus it makes sense not to know the final number of > records because the database might not have counted the final number > of records. Thanks for your immediate reply, but, Using Apache Commons DbUtils, there is length function which show the final number of records as following. Object[] pi = (Object[])qr.query( for (int i=0; i