File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL forEach

 
Alex Florentino
Ranch Hand
Posts: 48
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic