A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
How to iterate Array List
Joined: Oct 05, 2007
Feb 20, 2008 15:06:00
Hi, I have a arraylist and I need to iterate and display the values with <bean:write
here is the code
<bean:write name="allnames" />
I am adding allnames.add("name1");......etc
it is displaying in browser as [name1, name2] in a single row I need to be displayed seperately.
<bean:write name="allnames" property="?"/>
what is the property name here I need to give?
Joined: May 26, 2003
Feb 20, 2008 15:32:00
Wy not use logic:iterate? You can still use bean:write on each iteration through the loop.
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
I agree. Here's the link:
subject: How to iterate Array List
How do I iterate the object which is in Session (in a JSP)?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013