Win a copy of Mesos in Action this week in the Cloud/Virtualizaton 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: 64838
86
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