aspose file tools*
The moose likes Struts and the fly likes Iterate over an arraylist of beans ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Iterate over an arraylist of beans ?" Watch "Iterate over an arraylist of beans ?" New topic
Author

Iterate over an arraylist of beans ?

lakshmanan anand
Greenhorn

Joined: Jan 13, 2009
Posts: 22
Hi,

My JSP receives an array list of beans from an action.

I want to print the individual properties of beans in my JSP one per line. How can i do it ?

My arraylist is a list of persons.
IN my jsp i want to print the person name and its other properties one per line.

please help


http://luckydev07.blogspot.com
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9319
    
  17

Did you try anything yet?? Look at the s:iterator tag (if you are using Struts 2.x) and try to figure out how to achieve what you want...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Or JSTL's <c:forEach> tag.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Iterate over an arraylist of beans ?