| Author |
Issue with Core:forEach Tag, or perhaps something else
|
Brandon Plamondon
Greenhorn
Joined: Dec 04, 2009
Posts: 3
|
|
So I have an interesting issue, I'm trying to iterate over an ArrayList of objects however nothing is working. Debugging shows the ArrayList of Records in the request scope but the for each will not display them.
Here is the Record class
Anyone have any ideas why my results would be the following:
${meh.title}
${meh.desc}
And nothing else.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56162
|
|
|
Most likely your app is mis-configured. See the JSP FAQ. Is your web.xml declared using the Servlets 2.4 Schema, or the 2.3 DTD?
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Brandon Plamondon
Greenhorn
Joined: Dec 04, 2009
Posts: 3
|
|
This is my web.xml, really really simple... using the 2.3 dtd.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56162
|
|
That's the problem. You've disabled the EL.
Refactor your web.xml to use the 2.4 or 2.5 XML Schema. It's detailed in the JSP FAQ.
|
 |
Brandon Plamondon
Greenhorn
Joined: Dec 04, 2009
Posts: 3
|
|
|
That did the trick, thank you kindly.
|
 |
 |
|
|
subject: Issue with Core:forEach Tag, or perhaps something else
|
|
|