Just follow-up my previous note: I got this work by using:
<logic:iterate id="trb" name="list1" >
<logic:iterate id="sub" name="trb">
<bean:write name="sub" /><br/>
</logic:iterate>
</logic:iterate>
fyi,
Kathy
-----Original Message-----
From: Kathy Zhou [SMTP:[EMAIL PROTECTED]
Sent: Thursday, May 13, 2004 2:39 PM
To: '[EMAIL PROTECTED]'
Subject: nested logic tag
I need your help on how to use nested logic tag:
I have a ArrayList list1. each element of the list1 is a ArrayList too. In
Java code, it will be like:
for(int i=0; i<list1.size();i++){
ArrayList sublist=(ArrayList)list1.get(i);
for(int k=0; i<sublist.size();k++){
System.out.println(sublist.get(k));
}
}
Now if I set list1as an attribute of a bean, how could I use logic tag to
show the data in the sublist? Can I use nested logic tag? It seems not
working.
Thanks for your help,
Kathy
---------------------------------------------------------------------
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]