Hi There
For your code to work : You should a class in your context that : - Has a field called "contentList". The filed contentList should be of a type that Has the fields o "expression" o "translations". This field should then be of a type that has a field called: ยง "translation" I hope this helps. Good Luck From: Alexandru [mailto:[email protected]] Sent: mardi 14 juin 2011 12:16 To: Struts Users Mailing List; [email protected] Subject: Re: struts tags: How to use a list inside another list thank you, it does work. But i have a problem with arranging the items in the form. This is my form <s:form action="do-translate-document" cssClass="formtable" method="POST"> <s:iterator value="contentList"> <p> <s:property value="expression" /> </p> <s:textarea /> <s:iterator value="translations"> <p><s:property value="translation" /></p> </s:iterator> </s:iterator> <s:submit /> </s:form> As seen from form i'm trying to achieve this structure: <expression> <texarea_for_new_translation_input> <submited_translation0> <submited_translation1> <etc> but what i get is different. (check the attachment) --- On Mon, 6/13/11, Maurizio Cucchiara <[email protected]> wrote: From: Maurizio Cucchiara <[email protected]> Subject: Re: struts tags: How to use a list inside another list To: "Struts Users Mailing List" <[email protected]> Date: Monday, June 13, 2011, 6:33 PM Try this, AFAICR it should be work <s: itarator list="x"> <s: itarator list="y"> </s:iterator> </s:iterator> On 14 June 2011 00:21, Alexandru <[email protected]> wrote: > I want to do somethink like this > <s: itarator list="x"> > <s: itarator list="x.y"> > </s:iterator> > </s:iterator> > is it possible? Or should i use two separate lists? > -- Maurizio Cucchiara --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

