struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 19780] - <logic:iterate> does not seem to support java.util.Set, contrary to documentation
Date Mon, 12 May 2003 19:34:49 GMT
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=19780>.
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=19780

<logic:iterate> does not seem to support java.util.Set, contrary to documentation





------- Additional Comments From mohankishore@yahoo.com  2003-05-12 19:34 -------
Had a look at the code, uses the following algo:
        if (collection.getClass().isArray()) {
            iterator = Arrays.asList((Object[]) collection).iterator();
            // Plus a workaround for array of primitive types
        } else if (collection instanceof Collection) {
            iterator = ((Collection) collection).iterator();
        } else if (collection instanceof Iterator) {
            iterator = (Iterator) collection;
        } else if (collection instanceof Map) {
            iterator = ((Map) collection).entrySet().iterator();
        } else if (collection instanceof Enumeration) {
            iterator = IteratorUtils.asIterator((Enumeration) collection);
        } else {
            JspException e = new JspException(...);
            RequestUtils.saveException(pageContext, e);
            throw e;
        }

Should work as documented. What exactly is the problem when you use SortedSet? 
And, can you confirm that you are using 1.1RC1?

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org


Mime
View raw message