• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using a HashMap in a JSP

 
Foni kumar
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Experts,

I work on JSP servlets. I forwarded a hashmap entry to display on my JSP page. Can anyone suggest how to use this hm entries to iterate and generate a tree structure using DOJO? I am pretty new to DOJO and am specific to work on that , write any code in my jsp page to create a tree structure so can anyone suggest how can I achieve this?The data provided is in form of hashmap.

P.S: Data is coming from hashmap entries only and not database
Thanks & reg
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65529
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<c:forEach> will iterate over the Map instance. Each iterator will be a Map.Entry instance which has key and value properties.
 
Foni kumar
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:<c:forEach> will iterate over the Map instance. Each iterator will be a Map.Entry instance which has key and value properties.



you have any clue to use a Lazy load child node o the Dojo tree using JsonRestore . On click of the + button the folder should expand, i need to implement it using Dojo in my code.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!