You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/09/13 01:12:04 UTC

DO NOT REPLY [Bug 12591] - Variable declared with scope="AT_END" available within the body of a simple tag

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12591>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12591

Variable declared with scope="AT_END" available within the body of a simple tag

jan.luehe@sun.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From jan.luehe@sun.com  2002-09-12 23:12 -------
Not a bug. This test case is testing for the presence of a *scoped* as
opposed to a *scripting* variable.

The doTag() implementation of the simple tag handler in this test case
generates the scoped variable before invoking its fragment body (using
getJspBody().invoke()), which explains why that variable is visible
within the fragment body (using an EL expression).

In addition, the doTag() implementation adds the variable to the
fragment parameter map, which is an additional reason why it can be
accessed in the fragment body (per the spec, "for each key present in
the Map, the fragment must make a page scope variable available to the
fragment body, so that the parameters can be accessed via the
Expression Language or via other mechanisms").

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>