DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22382>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22382 bean:size and logic:iterate throws JSPException if collection is null Summary: bean:size and logic:iterate throws JSPException if collection is null Product: Struts Version: Nightly Build Platform: All OS/Version: All Status: NEW Severity: Enhancement Priority: Other Component: Custom Tags AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] bean:size throws JSPException if tested collection is null. It forces using logic:present before. Is it not simpler, to return size equal to 0 if tested collection does not exist? The same concept could be used for logic:iterate. It is generally correct, that contract between JSP and backand is "no bean, no result". Such contract saves some memory. But if external library returns Colelction you must explicite check if it is empty or not, means overhead for any such case. Proposed extension simplifies development and secure application against methods returning sometimes null and sometimes empty collection. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]