Form:
-------
public ArrayList getTest() {
return mTest;
}
public void setTest(ArrayList test) {
mTest = test;
}
public Item getItem(int i) {
return (Item)mTest.get(i);
}
private ArrayList mTest;
JSP:
-----
<c:forEach items="${form.test}" var="item" varStatus="status">
<html-el:multibox property="sel" value="${item.id}"/>
<c:out value="${item.name}"/>
<html-el:text property="item[${status.index}].info"/>
</c:forEach>
----- Original Message -----
From: "Claudia Woestheinrich" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 07, 2004 4:29 PM
Subject: Antwort: Re: problem with multibox
>
> ..Thanks that works.
>
> Now I have in the JSP-Page checkboxes and textfields. I want to
> write
> the two values (test,info) in an Map or Array[][]. How must I do
> this
> in the ActionForm?
>
> Thanks
> Claudia
>
> My JSP:
> <logic:iterate id="item" name="form" property="test">
> <html:multibox property="sel">
> <bean:write name="item" property="id"/>
> </html:multibox>
> <bean:write name="item" property="name"/>
> <html:text property="info"/>
> </logic:iterate>
>
>
>
> ---------------------------------------------------------------------
> 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]