> A better solution would be a to make a PAGE_WIDE scope available
> to tag authors.
But surely the variable won't be valid/initialised until the tag has
executed.
> In fact I would question the utility of AT_BEGIN
> and AT_END if such a scope existed. With these lexical scoping
> exceptions the only way to make sense of AT_END and AT_BEGIN
I take AT_BEGIN and AT_END to mean that the tag-defined scripting variable
is initialised in doStartTag/doEndTag respectively, I don't particularly
care where it's declared as long as the user of the tag knows when it's safe
to use the variable.
> is to think about the underlying generated code which JSP users
> shouldn't have to do.
No, but users if JSP have to understand how the environment works, and users
of a tag have to understand the semantics of that tag. If we don't trust
them to do that then we shouldn't be letting them loose with Java code and
script variables :-)
Kevin Jones
DevelopMentor
www.develop.com