Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply 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: 56162
    
  13

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
    
  13

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Issue with Core:forEach Tag, or perhaps something else
 
Similar Threads
Invoking Methods in JSF 2.0
JSTL forEach Tag not working
Ext JS: how to populate grid with values from servlet
why no error
Please review this code