just change collection to name (the following code work !
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%
java.util.Vector aVectore = new java.util.Vector();
aVectore.addElement("SAMPLE");
aVectore.addElement("SAMPLE2");
session.setAttribute("aVectore",aVectore);
%>
<logic:iterate id="item" name="aVectore">
<bean:write name="item"/>
</logic:iterate>
> -----Message d'origine-----
> De : Alireza Fattahi [mailto:[EMAIL PROTECTED]]
> Envoy� : lundi 18 novembre 2002 10:30
> � : 'Struts Users Mailing List'
> Objet : 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(IterateTag.java:337)
> at
> jrun__attachment__attach_file2ejsp1b._jspService(jrun__attachment_
> _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]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>