Hi Alireza,
you should use the name attribute like below:
<%
java.util.Vector aVectore = new java.util.Vector();
aVectore.addElement("SAMPLE");
session.setAttribute("aVectore",aVectore);
%>
<logic:iterate id="item" name="aVectore">
<bean:write name="item" />
</logic:iterate>
Bye
Thomas
> -----Urspr�ngliche Nachricht-----
> Von: Alireza Fattahi [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 18. November 2002 10:30
> An: 'Struts Users Mailing List'
> Betreff: logic:iterate Simple code not run
>
>
> Hi,
>
> It seems a simple code but It is not running:(
>
> <%
> java.util.Vector aVectore = new java.util.Vector();
> aVectore.addElement("SAMPLE");
> session.setAttribute("aVectore",aVectore);
> %>
> <logic:iterate id="item" collection="aVectore">
> </logic:iterate>
>
> *********************The stack *************************
> javax.servlet.jsp.JspException: Cannot create iterator for
> this collection
> at
> org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTa
> g.java:337)
> at
> jrun__attachment__attach_file2ejsp1b._jspService(jrun__attachm
ent__attach_fi
> le2ejsp1b.java:80)
> at
> jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
> at jrun.jsp.JSPServlet.service(JSPServlet.java:110)
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>