File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

logic:iterate on OrderedMap

 
Navaneeth Rao
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 169
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After all it was not as easy as i thought it would be. Here is a solution that worked :
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic