• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue with Core:forEach Tag, or perhaps something else

 
Brandon Plamondon
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64178
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Brandon Plamondon
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is my web.xml, really really simple... using the 2.3 dtd.

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64178
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That did the trick, thank you kindly.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic