|Summary:||Misleading error message from fn:length()|
|Product:||Taglibs||Reporter:||Geoffrey T Falk <gtf>|
|Component:||Standard Taglib||Assignee:||Tomcat Developers Mailing List <dev>|
Description Geoffrey T Falk 2005-01-30 01:31:30 UTC
Found in jakarta-taglibs-standard-1.1.2: When trying to apply fn:length() to something that is not a Collection, String, Enumeration or Iterator, this misleading exception is generated: "Don't know how to iterate over supplied "items" in <forEach>" It should say that the argument to fn:length() is invalid. This cost me much time debugging in the wrong area of a JSP page. Thanks for your attention.
Comment 1 Dhiru Pandey 2005-02-17 02:28:01 UTC
I fixed the error message in org/apache/taglibs/standard/functions/Functions.java. The fix was commited by Pierre Delisle (thanks Pierre). Marking this bug fixed. -Dhiru