wood burning stoves 2.0*
The moose likes JSP and the fly likes Looping on javabean array in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Looping on javabean array in jsp" Watch "Looping on javabean array in jsp" New topic
Author

Looping on javabean array in jsp

Thomas Houseman
Ranch Hand

Joined: Jul 30, 2009
Posts: 31
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

Joined: Jul 30, 2009
Posts: 31
Thanks guys. problem has been solved with this :


Sri Karr
Greenhorn

Joined: Mar 19, 2008
Posts: 9
you could also try the below just to avoid little bit extra coding
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

Also, mixing JSTL/EL and scriptlets is not recommended. You should strive to eliminate scriptlets from your JSP pages.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: Looping on javabean array in jsp
 
Similar Threads
initializing ArrayList
ArrayList throws
Arrays again :-(
comparing and sorting arraylist of arraylist
Counting chars during file read.