This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes JSTL forEach Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSTL forEach " Watch "JSTL forEach " New topic

JSTL forEach

Alex Florentino
Ranch Hand

Joined: Dec 12, 2006
Posts: 48
I Have index.jsp, the code:

don't show AFS... but if I put:

now it works!... it is correct ? the foreach only work for "attributes".

thanks a lot.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60817

That is correct. The EL has no access to scriplet variables, which makes sense since JSTL and EL are designed to remove the need for scriplets!

The proper term for the "attributes" are scoped variables.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Don't get me started about those stupid light bulbs.
subject: JSTL forEach
Similar Threads
I got http-500 error in servlet and to find error?
Hibernate and JSP
request.getAttribute Not Displaying Anything In JSP
Iterating through local List using JSTL
Why list is not being printed?