how to prevent jsp tags from being reused after being classloaded

Posted by mkoryak on Stack Overflow See other posts from Stack Overflow or by mkoryak
Published on 2010-03-19T23:28:13Z Indexed on 2010/03/19 23:31 UTC
Read the original article Hit count: 721

Filed under:
|
|

I have a problem where certain attributes in tag files stick around for the next time the tag is used.

I think this is because the Tag class is being classloaded, and then that same instance is reused for every invocation. So attributes that i do not set in later invocations are not null like i would expect them to be, and contain stale values!

I want this to not happen any more. Does anyone know what setting controls that in tomcat 6?

© Stack Overflow or respective owner

Related posts about java

Related posts about tomcat