Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to use iterator tag?  RSS feed

 
Alvin chew
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, i not clear about how to pass the collection say List to jsp , and the use the iterator tag to display the result , can someone please guide me on ? thank you very much for helping
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bind your collection object with your request object. like

Then get that attribute in your jsp page and use forEach tag.
 
Alvin chew
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks,adeel
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!