make sure in your ActionForm class, you have an attribute called testChecked
and coresponding getter/setter

Yong Chen



-----Original Message-----
From: Viljoen, Danie [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 09, 2002 6:54 AM
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:[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