Bug 8073

Summary: If select attribute of <x:forEach> action is empty, an Exception is improperly thrown.
Product: Taglibs Reporter: Ryan Lubke <Ryan.Lubke>
Component: Standard TaglibAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED WONTFIX    
Severity: major    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   

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.