tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felipe Schnack <feli...@ritterdosreis.br>
Subject RE: more about custam tag life cycle
Date Mon, 03 Feb 2003 20:58:17 GMT
  Wow, how tomcat creates a key to store a tag instance in its pool?
  (I'm actually assuming that Tomcat uses a keyed object pool from
commons-pool, I don't know if it does)

On Mon, 2003-02-03 at 18:51, Craig R. McClanahan wrote:
> 
> 
> On Mon, 3 Feb 2003, Tim Moore wrote:
> 
> > Date: Mon, 3 Feb 2003 14:51:21 -0500
> > From: Tim Moore <tmoore@blackboard.com>
> > Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> > To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> > Subject: RE: more about custam tag life cycle
> >
> > > Tag reuse is only allowed when the set of attributes that are
> > > used, and their values, are identical.  For example, the
> > > following two tags will
> > > *always* use different instances:
> > >
> > >   <foo:bar baz="a"/>
> > >   <foo:bar baz="b"/>
> > >
> > > because the attribute value is different.
> >
> > My understanding was that the same instance *could* be reused, as long
> > as setBaz("b") is called between the first doEndTag and the second
> > doStartTag.  Am I mistaken?
> >
> 
> No, you're not mistaken -- I was confusing the two scenarios.
> 
> It's legal for the container to reuse in the case above, because it's the
> same set of attribute *names*, not necessarily the same set of attribute
> *names+values*".  Obviously, it will have to generate a call to
> setBaz("b") in between.
> 
> Craig
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
-- 

Felipe Schnack
Analista de Sistemas
felipes@ritterdosreis.br
Cel.: (51)91287530
Linux Counter #281893

Centro Universitário Ritter dos Reis
http://www.ritterdosreis.br
ritter@ritterdosreis.br
Fone/Fax.: (51)32303341


---------------------------------------------------------------------
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