<%@ page import='allaire.taglib.*' %>
<j:sql datasrc='...' id='result'>
....
<j:sql>

<%
QueryTable t = (QueryTable)pageContext.getAttribute("result");
out.print(t.getRowCount());
%>

In JRun 3.1 (currently in beta), you should be able to treat
the query object like javax.sql.RowSet.

-C

--
Clement Wong
JRun Engineer, Macromedia
http://www.macromedia.com


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 12:06 PM
To: JRun-Talk
Subject: getRowCount()





Additional Header Information:
Received: from www.houseoffusion.com ([207.31.122.140]) by inside.pgi.com
(Lotus
SMTP MTA v4.6.6  (890.1 7-16-1999)) with SMTP id 85256A1F.005B3AFA; Fri, 30
Mar
2001 11:36:28 -0500
Received: from houseoffusion.com ([207.31.122.140])
          by www.houseoffusion.com (Post.Office MTA v3.5.3
release 223
          ID# 0-54969U100L100S0V35) with ESMTP id com
          for <[EMAIL PROTECTED]>;
          Fri, 30 Mar 2001 11:24:07 -0500
Content-type: text/plain
Content-type: text/plain
Date: Fri, 30 Mar 2001 11:15:18 -0500
From: Ed Apostol <[EMAIL PROTECTED]>
Message-id:
<[EMAIL PROTECTED]>
Subject: correction
Reply-To: [EMAIL PROTECTED]
To: JRun-Talk <[EMAIL PROTECTED]>


---------------------------------





Hi Eveyone,
Does anyone knows how to get getRowCount() after I ran a query?
JRun tag, sql does support getRowCount(), If I don't use JRun's sql tag, how
can
I get the recordcount after i ran a query?

Where can I find what else method does JRun sql tag support?

Thank you

YC
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to