tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Morgan Delagrange <mdela...@yahoo.com>
Subject Re: DBTags in WebLogic 6.0
Date Tue, 14 Aug 2001 22:25:39 GMT
Ouch, really really sounds like a Weblogic bug to me. 
Even if the tags are being cached, there's no way that
the tag should be retaining that information from
invocation to invocation.  In fact, when the result
set is empty, we return the SKIP_BODY constant.  :P

- Morgan

--- "Halvorson, Loren" <Loren.Halvorson@firepond.com>
wrote:
> I have found what I think to be a problem with the
> DBTags ResultSet taglib
> when used with WebLogic 6.0 SP2.  (I don't think
> it's significant, but I am
> using RowSets rather than ResultSets)
> 
> I have a single JSP with two rowset tags, the first
> tag is fed a rowset with
> several rows in it and works flawlessly, but the
> second is fed a rowset
> who's query did not return any rows, and the body of
> the first tag is
> erroneously written out for the second.  In
> ResultSetTag.java the body
> content seems to need to be cleared out somehow in
> release() due to
> WebLogic's recycling of the tag instances.
> 
> I wondered if doing something like the following
> would fix it:
> 
>   public void release() {
>     _statement = null;
>     _rset = null;
>     _shouldLoop = true;
>     _name = null;
>     _scope = null;
>     _rowCount = 0;
>     _stmtTag = null;
>     try {
>         getBodyContent().clear();
>     } catch (Exception e) { }
>   }
> 


=====
Morgan Delagrange
http://jakarta.apache.org/taglibs
http://jakarta.apache.org/commons

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Mime
View raw message