| Author |
logic:iterate on OrderedMap
|
Navaneeth Rao
Greenhorn
Joined: Sep 15, 2005
Posts: 3
|
|
Has anyone tried the logic:iterate over a OrderedMap full of beans? I have a OrderedMap called "catList" in my session. This OrderedMap has a bean called CatBean with GetCatId and GetCatName methods, returning catId and catName respectively. Now, how do I use logic:iterate to iterate over the map? Please help. Thanks.
|
 |
Srilakshmi Vara
Ranch Hand
Joined: Jul 21, 2004
Posts: 169
|
|
Hi Navneeth, Its just like other java.util structures, <logic:iterate id="var" name="formname" property="propname"> // Write the corresponding tags using var </logic:iterate> HTH Srilakshmi
|
 |
Navaneeth Rao
Greenhorn
Joined: Sep 15, 2005
Posts: 3
|
|
After all it was not as easy as i thought it would be. Here is a solution that worked :
|
 |
 |
|
|
subject: logic:iterate on OrderedMap
|
|
|