tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Moore" <tmo...@blackboard.com>
Subject RE: more about custam tag life cycle
Date Tue, 04 Feb 2003 15:44:39 GMT
> -----Original Message-----
> From: Felipe Schnack [mailto:felipes@ritterdosreis.br] 
> Sent: Tuesday, February 04, 2003 6:20 AM
> To: Tomcat Users List
> Subject: Re: more about custam tag life cycle
> 
> 
> > > > The way to look at it is simply that the generated code 
> is going 
> > > > to use
> > a
> > > > tag pool for each distinct class of tags. 
> Unfortunately, there is 
> > > > no specific action that tells the tag it is being 
> pulled from or 
> > > > being put
> > back
> > > > from the pool.
> > > >
> > >
> > > The page will call release() before it is put back in the pool.
> > 
> > Totally and completely false.  Please go back and read the 
> JSP Spec.  
> > The page will call release() before the tag is released to 
> GC, and for 
> > no other reason.
>   Now I'm really convinced that I should use doFinally()

I'm personally of the opinion that you should *never* have to clear your
tag attributes for any reason, because you're guaranteed by the spec
that a given tag instance will only be reused for invocations with the
same attribute set.  Each attribute will either be overwritten or
assumed to stay the same, so why do you need to ever clear them?

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863

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


Mime
View raw message