Bug 8073 - If select attribute of <x:forEach> action is empty, an Exception is improperly thrown.
Summary: If select attribute of <x:forEach> action is empty, an Exception is improperl...
Status: RESOLVED WONTFIX
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-04-14 17:46 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-04-14 17:46:11 UTC
Section 12.6, page12-153, 'Null & Error Handling':

If 'select' is empty, it is treated as an empty nodeset, i.e., no iteration
is performed.

Resulting stacktrace:

javax.servlet.jsp.JspTagException: com.werken.saxpath.XPathSyntaxException: 0:
Unexpected ''
	at org.apache.taglibs.standard.tag.common.xml.ForEachTag.prepare(ForEachTag.java:92)
	at javax.servlet.jsp.jstl.core.LoopTagSupport.doStartTag(LoopTagSupport.java:258)
Comment 1 Shawn Bayern 2002-04-17 21:21:04 UTC
Waiting for spec clarification.
Comment 2 Shawn Bayern 2002-04-18 23:18:57 UTC
To be changed in the spec.