You should add the "name='role'" attribute in the <html:multibox> tag.
When you think about it, it is logical.

hth,
tomK

> -----Original Message-----
> From: Viljoen, Danie [mailto:[EMAIL PROTECTED]] 
> Sent: woensdag 9 januari 2002 13:54
> To: 'Struts Users Mailing List'
> Subject: Multibox in iterate
> 
> 
> Hi
> 
> I iterate through a collection without any problem, but now I 
> want to add a
> checkbox for each row.  I used the following in my jsp page:
> 
> <logic:iterate id="role" name="myBean" property="allRoles" >
>     <tr>
>         <td>
>             <html:multibox property="testChecked"> 
>                 <bean:write name="role" property="name"/> 
>             </html:multibox> 
>         </td>
>         <td>
>         <bean:write name="role" property="name"/>
>         </td><td>
>         <bean:write name="role" />
>         </td>
>     </tr>
> </logic:iterate>
> 
> If I remove the multibox tag I iterate successfully, but with 
> the iterate
> tag I'm getting:
> 
> javax.servlet.ServletException: No getter method available 
> for property
> testChecked for bean under name org.apache.struts.taglib.html.BEAN
> 
> Thank You
> Danie
> 
> --
> To unsubscribe, e-mail:   
> <mailto:struts-user-> [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]>

Reply via email to