On Monday, February 3, 2003, [EMAIL PROTECTED]
wrote:

"Craig R. McClanahan" <[EMAIL PROTECTED]> wrote:

>> Are both Tomcat and Resin within spec in implementing different
>> behaviors here?  If so, what is the correct point in the lifecycle to
>> reset attribute values in a TagSupport object?
>>
>
>Sounds like they are to me.  The JSP page compiler has the option to
>optimize out the second call to the setters, because tag instances can
>only be shared if the combination of attribute values is identical (as
>they are in your case above), but it's not required.

That may be the missing piece: that tag instances can only be shared *if
the combination of attribute values is identical*.  I originally wrote
my code the way you described,  but I thought I was seeing cases where
tags instances were being shared even when the attributes weren't
identical.  Since I didn't know what the exact behavior to expect was, I
might have misread some other problem.

A quick rewrite of my code in the way you suggested seems to be behaving
correctly.

Gary McGath       http://www.mcgath.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to