You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by K Br <ko...@ny.com> on 2002/05/16 01:21:27 UTC

Handling submit with multibox

i have a form that lists a number of items using logic:iterate
and makes each item selectable using a check box (multibox).


 <logic:iterate id="currBook" collection="<%= books %>">
   <tr>
    <td>
        <html:multibox property="books">
           <bean:write name="currBook" property="title"/>
        </html:multibox>
        <bean:write name="currBook" property="title"/>
    </td>
   <br/>
   </tr>
 </logic:iterate>

The associated Form object makes available an item array Book[]
as a property that should contain the selected items. The submit button 
triggers an action that deletes the ietms from the Form's
Book[] array from the database. 

Upon pressing the submit button, I get the following server 
internal error:

javax.servlet.ServletException: BeanUtils.populate
        at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:774)
        at org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.
java:2061)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:156
4)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
        [ ... ]


what does this error mean?

Tx,

/Kobe




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>