[ http://issues.apache.org/struts/browse/STR-2091?page=all ]
David Evans reopened STR-2091:
------------------------------
Assign To: David Evans (was: Struts Developer Mailing List)
> EmptyTag does not worth with Arrays
> -----------------------------------
>
> Key: STR-2091
> URL: http://issues.apache.org/struts/browse/STR-2091
> Project: Struts Action 1
> Type: Bug
> Components: Taglibs
> Versions: 1.1 Final
> Environment: Operating System: other
> Platform: Other
> Reporter: Dave King
> Assignee: David Evans
> Fix For: 1.2 Family
>
> 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
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]