https://issues.apache.org/bugzilla/show_bug.cgi?id=56516

--- Comment #7 from Remy Maucherat <r...@apache.org> ---
I also think this is invalid, although I am not the biggest expert on JSPs.

The Javadoc for scopes says:
    /**
     * Scope information that scripting variable is visible only within the
     * start/end tags.
     */
    public static final int NESTED = 0;

    /**
     * Scope information that scripting variable is visible after start tag.
     */
    public static final int AT_BEGIN = 1;

    /**
     * Scope information that scripting variable is visible after end tag.
     */
    public static final int AT_END = 2;

So for NESTED, declaring at the beginning cannot be right, and Konstantin's
example should probably work. For the other two, it's about the same, there's
nothing which indicates the variable should be visible before the tag, and
since the scriptlets nesting is not visible, there's no solution to that.

Note: In the example given, the scope is 1 (AT_BEGIN).

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to