https://bz.apache.org/bugzilla/show_bug.cgi?id=60497

--- Comment #7 from Wai-Kau Lo <w...@destinysolutions.com> ---
Created attachment 34543
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34543&action=edit
Test web application

Attached is a self-contained web application that can be used to replicate the
issue.

After deploying the test.war file on a Tomcat Server of version 8.5.5 (or
higher up to 8.5.9), access the following two URLs in sequence:

1) http://localhost:8080/test/test/page1.jsp
You will receive a NullPointerException from page2.jsp as expected.
java.lang.NullPointerException
        org.apache.jsp.test.page2_jsp._jspService(page2_jsp.java:151)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        ........................


2) http://localhost:8080/test/test/page1.jsp?childName=name
Instead of the expected response shown below

Parent Name: Parent1 
Child Name: name contains 4 characters

you will receive the following JspException:
javax.servlet.jsp.JspException: No getter method for property: "children" of
bean: "form"
        org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:987)
       
org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:232)
       
org.apache.struts.taglib.nested.logic.NestedIterateTag.doStartTag(NestedIterateTag.java:73)
        org.apache.jsp.test.page2_jsp._jspService(page2_jsp.java:135)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        ..............

This is caused by the "corrupted" nested:iterate tag instance cached in the tag
pool after processing the first URL.

-- 
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