Or at least force the tag to clear itself once it is finished (the release() method?)
Originally posted by ramprasad madathil:
You can try to reset the instance variables (tag attributes) in the doEnd() method after you have finished processing.
The container assumes that it is the only thing setting the properties that represent the attribute values. Trust me, you start mucking aorund with those and there is no end to the pain and suffering. Want to see my scars?
The JSP container may reuse classic tag handler instances for multiple
occurrences of the corresponding custom action, in the same page or in different pages, but only if the same set of attributes are used for all occurrences. If a tag handler is used for more than one occurence, the container must reset all attributes where the values differ between the custom action occurrences. Attributes with the same value in all occurrences must not be reset. If an attribute value is set as a
request-time attribute value (using a scripting or an EL expression), the container must reset the attribute between all reuses of the tag handler instance.