> -----Original Message-----
> From: Itagaki, Masaki [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 21, 2002 11:45 AM

> This is just fine. Now, I have another AddressForm member of 
> a string array
> for multiple phone numbers, as "phones" (String[]) and need 
> to display as a
> dropdown in the table. All I could do was as follows:
> 
> <logic:iterate id="ad" type="com.[fullpath].AddressForm" 
> name="s_addresses">
> <tr>
> <td>
> <bean:write name="ad" property="name"/>
> </td>
> <td>
> <bean:write name="ad" property="address"/>
> </td>
> <td>
> <!-- Phone dropdown -->
> <bean:define id="telephones" property="phones" scope="request"/>
> <html:select property="phonelist">
>   <html:options collection="telephones" property="digits"
> labelProperty="number"/>
> <html:select>
> <!-- ----------------->
> </td>
> </tr>
> </logic:iterate>

I think your "bean:define" element needs to reference the bean created in
your loop.  Try the following:

<bean:define id="telephones" name="ad" property="phones" scope="request"/>

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


Reply via email to