Hi,

I've written some custom JSP tags that create scripting variables to be
used in a JSP page. These tags are nested. I use the VariableInfo.AT_BEGIN
for the scope in my VariableInfo objects. The JSP 1.1 specification
indicates that the scope of my variables should be from the start tag to
the end of the page. This works fine for the top level tag, but the scope
of the variables in the nested tags is only to then end tag of the
enclosing tag (not the end of the page). When I look at the java code
generated for my JSP, sure enough the variable is declared within the scope
of the enclosing tag. Is this a bug or am I reading the 1.1 specification
wrong? Is this a known bug? If it is, is there a planned fix?

I also tried using AT_END but get the same behavior.

I've run this under Tomcat 3.2.2 and 3.2.3 with the same results.

As an example:

<x:foo id='toplevel'>
    <x:bar id='leve2' />
</x:foo>

<%-- The following works. --%>
<p><%= toplevel.getSomeText() %>
<%-- The following does NOT work. --%>
<p><%= leve2.getSomeText() %>

Thanks,
Dave


Reply via email to