Casey Lucas wrote:
> 
> Sorry for the long message, but I'm a bit unclear on some Tag related
> spec details.  I need to make sure I have a clear understanding before
> I start thinking about tag handler reuse implementation.
> [...]

The JSP 1.1 spec is very confusing in this regard. I suggest you look at
the JSP 1.2 PDF spec before you get going with this. It contains much
improved descriptions, even though it may still not be as clear as it
should.

Basically, you're assumptions are right though: you can only reuse a
tag handler for action elements with the same attribute set. Calling
release() and reinitialize the tag handler for each use is not always
an efficient solution, because the tag handler may do expensive 
initialization in the setter methods. The release() method is intended
to be used by the tag handler to release all its state when it will
no longer be used, i.e. not as a "pool reset" method.

I agree that this whole area is pretty messy and unclear. We had a
looooooong discussion about how to resolve it in the best way within
the JSR-053 group last year. The result of those discussions is reflected
in the JSP 1.2 PDF spec.

Hans
-- 
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com
Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com

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

Reply via email to