tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "p@zdzior" <pazdz...@interia.pl>
Subject How to add two integer using tag libs?
Date Fri, 08 Aug 2003 21:47:31 GMT
Hi,

I am trying to add two integer values obtained from the database,
here is what I am doing:

<sql:transaction dataSource="${jazda}">
  <sql:query var="seeks">
    SELECT COUNT(*) AS SEEKS FROM REQUEST_SEEK WHERE RS_FK_RS_ID = 'SMS_AUTH' || RS_FK_RS_ID
= 'WWW_AUTH'
  </sql:query>
  <sql:query var="offers">
    SELECT COUNT(*) AS OFFERS FROM REQUEST_OFFER WHERE RO_FK_RS_ID = 'SMS_AUTH' || RO_FK_RS_ID
= 'WWW_AUTH'
  </sql:query>
</sql:transaction>

<c:set var="all_active" scope="page" value="${offers.rows[0].OFFERS} + ${seeks.rows[0].SEEKS}"
/>

but I am receiving only string for example "34 + 65".
Is it possible to add these values and print the result?

I would be gratefull for any help,

regards,
Lukasz

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message