The java objects instantiated for JSP Custom Tags can now be pooled and reused. This significantly boosts the performance of JSP pages which use custom tags.
That page also says that web.xml can contain an "enablePooling" option for that, and that its default value is true.
After the doEndTag invocation, the tag handler is available for further invocations (and it is expected to have retained its properties).
So what I do is reset all local variables to their default value just before doEndTag() returns
When referencing an enum constant with an expression, you use a String literal. For example, consider this Enum class:
public enum Suit {hearts, spades, diamonds, clubs}
To refer to the Suit constant, Suit.hearts with an expression, you use the String literal, "hearts"
J. Pipka. Objects, Components, Architectures, Services, and Applications for a NetworkedWorld: International Conference NetObjectDays, NODe 2002, Erfurt, Germany, October 7-10, 2002. Revised Papers (2003)