]
Matthew Casperson commented on WFLY-6267:
-----------------------------------------
Pull request has been done:
JSTL will fail with tags using x:out nested in a x:forEach
----------------------------------------------------------
Key: WFLY-6267
URL:
https://issues.jboss.org/browse/WFLY-6267
Project: WildFly
Issue Type: Bug
Components: Web (Undertow)
Reporter: Matthew Casperson
Assignee: Stuart Douglas
See
https://github.com/mcasperson/wildfly_jstl_bug/
What happens is you have a x:forEach in a JSP page. Inside this x:forEach you call a tag
that itself has a x:forEach. The variable created by the second x:forEach is inaccessible
to any nested x:out elements.
This happens because the x:out pageContext is actually linked to the pageContext from the
jsp page, which doesn't hold any variables created by the x:whatever elements in the
tag file.
See
https://github.com/mcasperson/wildfly_jstl_bug/blob/master/src/main/webap...
and
https://github.com/mcasperson/wildfly_jstl_bug/blob/master/src/main/webap...
for more details.