This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing an element of a collection in logic iterate

 
phil gibbs
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a Collection of objects passed to a JSP. Elements of each object are rendered within an HTML table in the page. I need to create a scripting variable from a specific element as I iterate over the Collection. I think that I can use the bean efine tag to do this? I need to access the value to do some further processing so that I can render the output from this processing on the table row element.
 
Mark Blackledge
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you use EL? From within the logic iterate just access your item with something like ${item.name}. You can put that right in the script.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic