You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by Dhiru Pandey <Dh...@Sun.COM> on 2005/02/10 00:17:56 UTC

[Standard][PATCH]Fix for Bug 33300 in Functions.java

Fix for Bug 33300 - Misleading error message from fn:length()

Description:

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

The change is required in:
org/apache/taglibs/standard/functions/Functions.java

Thanks,
-Dhiru