What are you trying to put in the IF statement (parameters)?
You can put the result from the column into a variable:
<sql:resultSet id="rset2">
<sql:getColumn position="1" to="cookievar" />
<%
String cookievar;
cookievar = pageContext.getAttribute("cookievar").toString();
out.println("CookieVAR = " + cookievar);
%>
</sql:resultSet>
Then perform your IF/Else statement on the variable (cookievar).
thanks!
Troy Campano
-----Original Message-----
From: Mano lito [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 26, 2001 7:18 AM
To: [EMAIL PROTECTED]
Subject: Problem using DBTags!
Hi,
We have a problem using DBTags. We use Tomcat 3.2.3 and PostgreSQL
database.
We don't know how to branch off depending on a <sql:getColumn> tag. Either
is
not possible or we have not seen any example. We were trying to
<jsp:include>
some pages depending on a query result, but that seems illegal:
is there any way to simulate an "if statement" using DBTags?
I'm not mentioning <sql:wasEmpty>...
Thans in advance!
_________________________________________________________________
Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp