You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Pfingstl Gernot <ge...@stmk.gv.at> on 2003/05/02 11:09:09 UTC

Custom Tag; release()

Is this a bug or don't I understand the specification correct?

I wrote a custom tag (extends TagSupport), implemented doStartTag(), doEndTag() and release(). The first time it works correct, but if the tag is called a second time there is a incorrect behaviour, because release() is never called! So the internal state of the tag is never reset and if the tag is tomcat internally resued, there's an incorrect output. I'm setting the internal variables to a default value in release().

I interpreted the specification in the way, that release() is called, before the tag can be reused!?

I tried my examples with tomcat 4.1.12 and 4.1.18 with default settings.

Thank you,
Gernot

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


Re: Custom Tag; release()

Posted by Tim Funk <fu...@joedog.org>.
In painful detail, the bug flame war shall reveal the answer ...

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


-Tim

Pfingstl Gernot wrote:
> Is this a bug or don't I understand the specification correct?
> 
> I wrote a custom tag (extends TagSupport), implemented doStartTag(), doEndTag() and release(). The first time it works correct, but if the tag is called a second time there is a incorrect behaviour, because release() is never called! So the internal state of the tag is never reset and if the tag is tomcat internally resued, there's an incorrect output. I'm setting the internal variables to a default value in release().
> 
> I interpreted the specification in the way, that release() is called, before the tag can be reused!?
> 
> I tried my examples with tomcat 4.1.12 and 4.1.18 with default settings.
> 
> Thank you,
> Gernot
> 


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