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 <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: Tomcat Users List <[EMAIL PROTECTED]>
> > 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--
Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893
Centro Universit�rio Ritter dos Reis
http://www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303341
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]