Bug 27665 - Nested tags with scripting variables generates invalid code
Summary: Nested tags with scripting variables generates invalid code
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 5
Classification: Unclassified
Component: Jasper (show other bugs)
Version: 5.0.19
Hardware: All All
: P3 major with 1 vote (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-15 14:40 UTC by Clemens Wagner
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments
WAR and complete source which demonstrate the bug. (4.68 KB, application/octet-stream)
2004-03-23 11:39 UTC, Clemens Wagner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Clemens Wagner 2004-03-15 14:40:10 UTC
Using nested custom tags that create scripting variables leads Jasper to create invalid code. Example:

<my:bean name="outer">
        <%-- outer is null iff pageContext.findAttribute("outer") is null --%>
        <my:bean name="inner"/>
        <%-- inner is always null even if pageContext.findAttribute("inner") is not  --%>
 </my:bean>
<%-- outer is null iff pageContext.findAttribute("outer") is null --%>

where the bean-tag sets a value in the pageContext with the given name and any value.
This bug is known since tomcat version 4.1 (see bug 19361).
Comment 1 Kin-Man Chung 2004-03-23 00:21:22 UTC
Please include a deployable test case in war file.
Comment 2 Clemens Wagner 2004-03-23 11:39:18 UTC
Created attachment 10919 [details]
WAR and complete source which demonstrate the bug.
Comment 3 Kin-Man Chung 2004-03-27 01:07:03 UTC
Fixed.