DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=28840>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=28840 NPE when using an Iterator for items in a JSTL forEach tag Summary: NPE when using an Iterator for items in a JSTL forEach tag Product: Tomcat 5 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Jasper AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] If you specify an object that is an Iterator for the "items" attribute of a JSTL forEach tag, you get a NullPointerException. The class org.apache.jasper.tagplugins.jstl.ForEach needs to have the following code inserted at line 140 ctxt.generateJavaSource("else if (" + itemsV + " instanceof Iterator)"); ctxt.generateJavaSource(iterV + "=(Iterator)" + itemsV + ";"); (apologies for not attaching a real diff) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]