You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2004/06/11 00:57:10 UTC
DO NOT REPLY [Bug 29515] New: -
EmptyTag does not worth with Arrays
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=29515>.
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=29515
EmptyTag does not worth with Arrays
Summary: EmptyTag does not worth with Arrays
Product: Struts
Version: 1.1 Final
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Custom Tags
AssignedTo: dev@struts.apache.org
ReportedBy: djking@shaw.ca
given that logic:iterate works with Collections or Arrays it seems wrong that
the Empty / NotEmpty tags do not. Could the following code be added to the
EmptyTag codition method?
else if (value.getClass().isArray()){
empty = Array.getLength(value) == 0;
}
I searched the dev list and was unable to find a previous reference to this. I
also could not find an entry in the bug database, but I may not have gotten all
the options right.
- Peace
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org