I can't run struts-layout nestCollection tag.
Could you send some code to explain the problem?

My problem is that has a Collection and it cover another Collections, and I want take 
Collection data through iterate tag.(Two level Collection how to iterator)
How to do this problem?

Ex.

        itemModel is a javabean;
         .........
         ................
         Collection list = new ArrayList();
         Collection itemlist = new ArrayList();
         itemlist.add(new itemModel("1"));
         itemlist.add(new itemModel("2"));
         list.add(new calendarModel(itemlist));  
        
         itemlist.clear();      
         itemlist.add(new itemModel("1"));
         itemlist.add(new itemModel("2"));
         list.add(new calendarModel(itemlist)); 
        ..........
        ........
        .....
        

public class calendarModel {
  private Collection item = new ArrayList();
  public calendarModel(Collection item)
  {
     this.setItem(item);
  }

  public Collection getItem() {
    return item;
  }
  public void setItem(Collection item) {
    this.item = item;
  }

}

I want to get itemModel.
How to do it ?



I need help!!!!!!!!!

Thanks.
 
Xlen




-----Original Message-----
From: Frederic Dernbach [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 07, 2003 8:19 PM
To: Struts Users Mailing List
Subject: Re: [help] nest logic:iterate problem!!
Importance: High


You can look at the struts-layout library that solved this problem in its 
<layout:collection> tag. Source code of the library is available at 
http://struts.application-servers.com/ .

Fred

Le mar 07/10/2003 à 13:52, 林?漳 a écrit :
> Dear:
> How to processes nested iterate tag?
> 
> I’m meeting a nest iterate problem.
> Ex:
>                <logic:iterate id="list1" name="list" type="java.util.ArrayList">
>             <tr>
>             <logic:iterate id="itemlist" name="list1" property="item" 
> type="java.util.ArrayList">
>               <td width="14%" class="td_Bcontent"><div 
> align="center"></div><bean:write name="itemlist1" property="date"/></td>
>             </logic:iterate>
>             </tr>
>             </logic:iterate>
> Have anything to solve this problem?
> 
> Thanks a lot
> Xlen
> 
> ---------------------------------------------------------------------
> 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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to