tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: Problem using DBTags!
Date Fri, 26 Oct 2001 19:24:18 GMT
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);

Then perform your IF/Else statement on the variable (cookievar).


Troy Campano

-----Original Message-----
From: Mano lito []
Sent: Friday, October 26, 2001 7:18 AM
Subject: Problem using DBTags!


  We have a problem using DBTags. We use Tomcat 3.2.3 and PostgreSQL 
  We don't know how to branch off depending on a <sql:getColumn> tag. Either

  not possible or we have not seen any example. We were trying to 
  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

View raw message