I'm new to struts, but this is how i did it.

id and name are what you assign to the field 
type is the class type in the vector (enumeration)
property the the field in the class defined in type(above) that you now refer to as id 
and name(above)

<%      Vector suppliers = (Vector) catalogSession.getAttribute("suppliers");%>

<logic:iterate id="s" collection="<%=suppliers %>" type="Beans.orgVO">
<bean:write name="s" property="orgName" filter="true"/> <br>
</logic:iterate>

If there's a better way, I'd like to learn too

David

-----Original Message-----
From: Renato Romano [mailto:[EMAIL PROTECTED]
Sent: Monday, August 25, 2003 8:14 AM
To: 'Struts Users Mailing List'
Subject: Iterating over session.getAttributeNames


I need to iterate over the enumeration returned by
session.getAttributeNames()
Any idea to do this ? I don't think that

<logic:iterate id="currentAttr" name="session"
property="attributeNames">
...

would work...
Thanks

Renato

P.S.: of course I could use <% ... %> but I'd prefer not to do so ...
____________________________________
Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_____________________________________




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to