tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Atlas" <MAt...@basistech.com>
Subject RE: Result with sql
Date Tue, 20 Jun 2006 17:15:17 GMT

<sql:query var="countQuery">
select count(*) as totalCount from table
</sql:query>

<c:out value="${countQuery.rows[0].totalCount}"/>
 

-----Original Message-----
From: Francis [mailto:ffraikin@met.wallonie.be] 
Sent: Tuesday, June 20, 2006 9:11 AM
To: Tag Libraries Users List
Subject: Result with sql

How to retrieve one result from a sql:query whitout a foreach?

For instance "select count(*) from table" in the var nbr.

Francis


---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message