Resolution: Won't Fix
Affects Version/s: Nightly Build
Fix Version/s: None
Component/s: Tag Libraries
Environment:Operating System: All
bean:size throws JSPException if tested collection is null. It forces using
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.