> -----Original Message-----
> From: David M. Karr [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, February 05, 2003 1:20 AM
> To: [EMAIL PROTECTED]
> Subject: Does TC 4.1.18 actually reuse tag handler instances?
> 
> 
> I've been following some of the discussions about reusing tag 
> handlers, but after trying some test cases, I'm having 
> trouble with a test case that is behaving differently than I 
> expected.  I have a tag inside a Struts "logic-el:iterate" 
> loop, and all the attributes of the tag are plain strings, 
> not scriptlet expressions (although one is a JSTL EL expression).
> 
> On the first iteration, the setter method is called on the 
> attribute.  On the second iteration, I would have expected it 
> to reuse the original tag handler, and NOT call the setter 
> method.  I know it did reuse the tag handler, because I set a 
> breakpoint in an empty default constructor in the tag, and it 
> got there on the first iteration, but not on the second 
> iteration.  On the second iteration, however, it DID call the 
> setter method, which I believe, according to the 
> specification, should not happen.

Yeah, to add to what Craig said, according to the specification it does
not *have* to call the setter again, but it *may*, and in Tomcat's case,
does.

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to