Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Array of Objects

 
peter kosmas
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there
i am using Spring and JSTL and i have this problem
how do i iterate an Array of Objects with JSTL ???




This does not work ...
Can someone tell me how do i Iterate an Array of Objects ??
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64833
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read: ItDoesntWorkIsUseless

Without know what is happening, how can anyone help?
 
peter kosmas
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HAHAHAHAHAHA !!!

Ok
I just want to iterate with JSTL an Array Of Objects nothing else
i have tested the other stuff and works fine
What is wrong,is when i declare the iteration with for each

is this what code is needed when you want to iterate an array of Objects???
<c:forEach items="${quotes}" var="quo">
${quo.quote}

</c:forEach>

This is the Bean




I fill an Array of them by this method
//THis works

Now i want to iterate this Array just to see if it works
by this For Each

# <c:forEach items="${quotes}" var="quo">
# ${quo.quote}

# </c:forEach>

Is this Declared right ???
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check this
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64833
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I repeat: what is happening?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic