Hi all,
I'm upgrading my old struts right now and several years ago I ran into
the problem that since Tomcat has a TagPool and reuse tags, the state of
the tag wasn't reseted beetween usage. I looked into the new version of
struts and I cannot find how the tag is resetted between usage.
I looked into tomcat in the TagHandlerPool.reuse() and the release()
function is not called at the end of each utilization but only when the
tag is not used anymore (to be garbage collected). So how Struts reset
is tag between utilisation to avoid using the properties setted in the
previous utilisation.
Thanks for your help on this!
Best Regards
/David
/**
* Adds the given tag handler to this tag handler pool, unless this tag
* handler pool has already reached its capacity, in which case the tag
* handler's release() method is called.
*
* @param handler Tag handler to add to this tag handler pool
*/
public void reuse(Tag handler) {
synchronized( this ) {
if (current < (handlers.length - 1)) {
handlers[++current] = handler;
return;
}
}
// There is no need for other threads to wait for us to release
handler.release();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]