jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21647] New: - Select statements with no rows selected problem
Date Wed, 16 Jul 2003 11:24:31 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21647>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21647

Select statements with no rows selected problem

           Summary: Select statements with no rows selected problem
           Product: Taglibs
           Version: 1.0
          Platform: PC
        OS/Version: MacOS 9
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: DBTags Taglib
        AssignedTo: taglibs-dev@jakarta.apache.org
        ReportedBy: pazdzior@interia.pl
                CC: pazdzior@interia.pl


I am doning a select statemnet as follows:

                <table align="center" width="590" cellspacing="0"
cellpadding="2">

                  <th align="left">
                    Data:
                  </th>
                  <th align="left">
                    Czas:
                  </th>
                  <sql:statement id="stmt4" conn="conn">
                    <sql:query>
                      select RS_ID, RS_DESCRIPTION FROM REQUEST_STATUS where
RS_ID = 'DUPA';
                    </sql:query>
                  <sql:resultSet id="rset4">
                  <tr>
                    <td><sql:getColumn colName="RS_ID"/></td>
                    <td><sql:getColumn colName="RS_DESCRIPTION"/></td>
                  </tr>
                  </sql:resultSet>
                  <tr align="center">
        <td colspan="6">
          <sql:wasEmpty>Niestety dupa.</sql:wasEmpty>
          <sql:wasNotEmpty>Tyle wierszy:
<B><sql:rowCount/></B>.</sql:wasNotEmpty>
        </td>
      </tr>
                </sql:statement>

Everything works perfect except one thing:

If the select statement returns no rows it prints the sql statetment body in
the output page (befor the table starts).
(If there are some rows the sql statement body is not visible onthe output
page)

The same problem occurs in the dbtags-examples application downloaded from
jackarta website.

regards,
lukasz

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


Mime
View raw message