Re: confused about custom-tag keeping state...

From: Ryan Stewart (zzanNOtozz_at_gSPAMo.com)
Date: 03/05/04


Date: Fri, 5 Mar 2004 06:43:40 -0600


"luca" <luca_remove@tin.it> wrote in message
news:_XW1c.175$z23.5511@news3.tin.it...
>
> Hello, I am designing a tag library. My problem is that
> my tags (tomcat 4.1.18 on win2k) seem to retain the status
> from one invocation to the next (i.e. variables are
> not initialized each time).
>
> I tried to look for solutions on google, but I only gather
> that I should do something about calling the release() method
> somewhere (but where?)
> Also, I am confused about multi-threading (what if a doInitTag
> kicks in while a previous instance of the tag is being processed?)
>
> I have found a workaround by manually reinitializing the tags
> at the beginning of doInitTag(), but this seems unelegant to me...
>
> ideas? real knowledge?
>
> thank you
>
> luca
>
Please crosspost in the future instead of multiposting.



Relevant Pages

  • Re: confused about custom tags keeping state
    ... "luca" wrote in message ... >> handler. ... the tag handler is assumed to hold a ... >> I normally define my own destructor or initialiser method which I invoke ...
    (comp.lang.java.programmer)
  • Re: custom tags and content type
    ... luca wrote: ... My tag goes like: ... I keep getting text/html. ... > the MIME type before I get a chance to change that in my tag? ...
    (comp.lang.java.programmer)
  • confused about custom tags keeping state
    ... I am designing a tag library. ... my tags (tomcat 4.1.18 on win2k) seem to retain the status ... from one invocation to the next (i.e. variables are ... at the beginning of doInitTag(), but this seems unelegant to me... ...
    (comp.lang.java.programmer)
  • confused about custom-tag keeping state...
    ... I am designing a tag library. ... my tags (tomcat 4.1.18 on win2k) seem to retain the status ... from one invocation to the next (i.e. variables are ... at the beginning of doInitTag(), but this seems unelegant to me... ...
    (comp.lang.java.help)