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.
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