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/06/18 17:21:46 UTC
DO NOT REPLY [Bug 9961] New: -
JSTL core tag forEach does not work for List
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=9961>.
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=9961
JSTL core tag forEach does not work for List
Summary: JSTL core tag forEach does not work for List
Product: Tomcat 4
Version: 4.1.5
Platform: Sun
OS/Version: Solaris
Status: NEW
Severity: Major
Priority: Other
Component: Unknown
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: jesse@noitatieto.fi
Setting:
- a JSTL page using only jstl-c (el version).
- JSTL version is the 1.0 (copied from jwsdp-1.0).
- SunOS host 5.8 Generic_108528-13 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
- java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)
- JAVA_OPTS=-mx256m
- NOT tested on other platforms
Problem:
A bean property of type java.util.List does not work with <c:forEach>. The page
loads correctly with tomcat 4.0.4.
The page should output:
---8<---
tst: test.Test@cb42cf
single: singleval
list: [first, second, third]
foreach:
first
second
third
---8<---
But with 4.1.5 the page just hangs in load forever. If you remove the
<c:forEach>...</c:forEach> part from the b.jsp, other parts of the page work
correctly in 4.1.5
the sample webapp can be found as a jar here:
http://www.noitatieto.fi/~jesse/tomcat-4.1.5-bean-problem-webapp.tar.gz
I'm not sure if this is a JSTL bug or a tomcat bug; the fact that 4.0.4 works
correctly would suggest that this is a bug in tomcat.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>