<form-property name="cities" type="java.util.ArrayList" /> .. //also you need to scope to session
<action path="/process-form" name="myForm" scope="session" ...
.. ArrayList cityList = new ArrayList(); cityList.add(new CityBean()); cityList.add(new CityBean());
theForm.set("cities",cityList);
//you need this too for an unknown reason
request.setAttribute("cities",cityList.toArray());..
<logic:iterate id="city" name="myForm" property="cities">
<html:text name="city" property="name" />
</logic:iterate>..
I've helped a few tutorial victims with this and it works for them too.
If you have it running with the forEach tags (they work with the html:text or other form bits) I'd like to know..
Cheers Mark
On Tuesday, October 21, 2003, at 06:42 PM, Chen, Gin wrote:
Remove initial="" Then in your jsp do: <c:forEach var="blah" items="${myFormBean.map.city}"> <c:out value="${blah}"/> </c:forEach> -Tim
-----Original Message----- From: Barry Volpe [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 1:14 PM To: Struts Users Mailing List Subject: DynaForms and java.util.ArrayList"
When I define this in my struts-config:
<form-property name="city" type="java.util.ArrayList" initial=""/>
I get this error:
[ServletException in:/tiles/locationselection.jsp] Exception creating bean of class org.apache.struts.validator.DynaValidatorForm: {1}'
Can I access "city" using JSTL in my jsp.
What should I put in my JSP.
What am I missing?
Thanks, Barry
--------------------------------------------------------------------- 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]

