Win a copy of The Java Performance Companion this week in the Performance 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