You'd have to place this code inside or after the ResultSet tags because it
is dependant on it.  If this does not work, get the source code for your
version of dbtags and look at the RowCountTag.java program for the
PageContext parameter name that is used for the row count.

-----Original Message-----
From: sufi malak [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 11:44 AM
To: [EMAIL PROTECTED]
Subject: RE: can we assign <sql:rowCount/> to a variable ??


I tried it :
<% Integer myRowCount =
(Integer)pageContext.getAttribute("org.apache.taglibs.dbtags.resultset.rowco
unt"); 
%>
<%=myRowCount%>

BUT I got null


>From: "Mader, Steve" <[EMAIL PROTECTED]>
>Reply-To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
>To: "'Tag Libraries Users List'" <[EMAIL PROTECTED]>
>Subject: RE: can we assign <sql:rowCount/>  to a variable ??
>Date: Wed, 22 May 2002 10:20:31 -0400
>
>
>Try:
>
><% Integer myRowCount =
>(Integer)pageContext.getAttribute("org.apache.taglibs.dbtags.resultset.rowc
o
>unt"); %>
>
>-----Original Message-----
>From: sufi malak [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, May 22, 2002 10:08 AM
>To: [EMAIL PROTECTED]
>Cc: [EMAIL PROTECTED]
>Subject: can we assign <sql:rowCount/> to a variable ??
>
>
>can we assign <sql:rowCount/> of DBtag  to a variable ??
>thanks
>
>
>
>_________________________________________________________________
>Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>
>




_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to