aspose file tools*
The moose likes JSP and the fly likes Array of Objects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Array of Objects " Watch "Array of Objects " New topic
Author

Array of Objects

peter kosmas
Ranch Hand

Joined: Aug 26, 2008
Posts: 79
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 ??

Time is relative so there is no way i can be late.
~Albert Einstein~
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60082
    
  65

Please read: ItDoesntWorkIsUseless

Without know what is happening, how can anyone help?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
peter kosmas
Ranch Hand

Joined: Aug 26, 2008
Posts: 79
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

Joined: Jan 28, 2008
Posts: 5575

check this
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60082
    
  65

I repeat: what is happening?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Array of Objects
 
Similar Threads
JSP variable typical problem
Iterating through local List using JSTL
Iterating over Map using JSTL
display exception on formbackingobject
Bind global errors to Spring form and throw them to view