You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by bu...@apache.org on 2003/09/04 11:16:28 UTC

DO NOT REPLY [Bug 22927] - sql:resultset displays body of last succefully processed body tag

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=22927>.
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=22927

sql:resultset displays body of last succefully processed body tag





------- Additional Comments From mvdijken@madocke.nl  2003-09-04 09:16 -------
I've got a servlet that creates a resultset and then puts this resultset in the
request attributes under "results". In the page I've got these tags:

<sql:resultSet name="results" id="rslts">
<p>
   <sql:getColumn colName="app_title"/><br>
</p>
</sql:resultSet>
<sql:wasEmpty><p>No results found</p></sql:wasEmpty>

I figure this should loop the content of the resultset if anything can be found
and if the resultset was null, then the sql:wasEmpty should be displayed. 

Over to the problem. The jsp behaves exactly as expected when the server has
just been reboot. However, after the first time someone has found any results at
all, things go haywire when no results can be found. When no results can be
found, the sql:resultset displays some random blurb. Sometimes this will be the
body of the previous sql:resultset. At other times the body of fmt:bundle is
displayed. It looks as if the body of the last succesfully processed tag is
displayed again somehow.

I can't really figure out whether this is a bug of the sql tag, an error in the
BodyTagSupport class or of course something I'm doing wrong.