Good point. I should have added that. When you want to create a scripting variable on the page from a tag handler, you need to declare it in a TagExtraInfo class. here's an example of how to do it with an "id" attribute that'll only be available nested between opening and closing tags:
This defines a scripting variable named "id" for the tag handler "foo.bar.taglib.fooTag". It's "true" that it will be created by the tag handler, and its scope is NESTED -- i.e., it is only available/"visible" when used nested between opening and closing tags on the page.
Other possible scopes are AT_END, which means only after the closing of the tag's appearance on the page to (potentially) the end of the document, and AT_BEGIN, which means from the beginning of the tag's first appearance on the page.
Like I said, see the Jakarta taglibs. There are several examples of this sort of thing there.
------------------
Scott Stirling
Author of
Java Server Pages Application Development [This message has been edited by Scott Stirling (edited March 06, 2001).]