aspose file tools*
The moose likes JSP and the fly likes Issue with Core:forEach Tag, or perhaps something else Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Issue with Core:forEach Tag, or perhaps something else" Watch "Issue with Core:forEach Tag, or perhaps something else" New topic
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: 61010
    
  65

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?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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: 61010
    
  65

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.
 
Don't get me started about those stupid light bulbs.
 
subject: Issue with Core:forEach Tag, or perhaps something else