Bug 7258 - If the items attribute of the forEach action evaluates to null an HTTP 500 is incorrectly returned.
Summary: If the items attribute of the forEach action evaluates to null an HTTP 500 is...
Status: CLOSED WORKSFORME
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Standard Taglib (show other bugs)
Version: unspecified
Hardware: All All
: P3 major (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-19 23:24 UTC by Ryan Lubke
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Lubke 2002-03-19 23:24:56 UTC
Given:
<c:forEach items="${null}">
</c:forEach>

The result of the above is an HTTP 500.  The JSTL spec (public draft), section
6.2, page 6-43 states: 

"If items is null, it is treated as an empty collection, i.e, no iteration is
performed."
Comment 1 Shawn Bayern 2002-03-19 23:32:40 UTC
Ryan - Are you sure you're using the actual Beta 1 CVS tag, not the one right 
before it?  I believe I fixed this issue just before Beta 1 was released, and I 
can confirm now that it works for me.  (I get no output, as expected -- not an 
exception leading to an HTTP 500 response code.)