Hi all, I've been trying to provide a non-scriptlet solution to describing attributes and values in a session as part of a 'pretty debug page' using the iterate tag. It seems we need to use commons-IteratorUtils (Deprecated. Use commons-collections' IteratorUtils.asIterator(Enumeration).) Though how to do that in a nice tag is interesting in itself. Also, Id like to *get* the value of an attribute during the iterate but keep coming unstuck with nesting problems, is this even possible? Scriptlet version (works) <BR><BR><B>Session attributes</B></BR> <% java.util.Enumeration e = session.getAttributeNames(); String key; while (e.hasMoreElements()) { key=(String)e.nextElement(); out.println("<BR>key="+key+", value="+session.getAttribute(key).toString()); } %> Nice taglib version (broken) <logic:iterate id="item" collection="session.attributeNames" type="java.lang.String"> <BR><bean:write name="item"/> <% out.println(session.getAttribute((String)item)); %> </logic:iterate> Any idea/pointers appreciated, Andy. [EMAIL PROTECTED]
This message (including any attachments) may contain confidential information intended for a specific individual and purpose. If you are not the intended recipient, delete this message. If you are not the intended recipient, disclosing, copying, distributing, or taking any action based on this message is strictly prohibited.