Tim,

Thanks. The error is gone.  Should have
realized I couldn't initialize array with initial="".

Barry


----- Original Message ----- 
From: "Chen, Gin" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, October 21, 2003 10:42 AM
Subject: RE: DynaForms and java.util.ArrayList" 


> 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]

Reply via email to