This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Looping on javabean array in jsp

 
Thomas Houseman
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a Servlet which I configure this ArrayList :



Then, in the JSP I'm trying to read that ArrayList with a loop :


So, I can't dynamically loop on the array and show it's values.
Can anyone help me how should I run over the array and show its values ?

Thanks !!
 
Thomas Houseman
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys. problem has been solved with this :


 
Sri Karr
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you could also try the below just to avoid little bit extra coding
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65111
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, mixing JSTL/EL and scriptlets is not recommended. You should strive to eliminate scriptlets from your JSP pages.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic