This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Iterate an arraylist of valuobjects  in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Iterate an arraylist of valuobjects  in jsp" Watch "Iterate an arraylist of valuobjects  in jsp" New topic
Author

Iterate an arraylist of valuobjects in jsp

Yatharth Kumar
Greenhorn

Joined: Dec 06, 2002
Posts: 14
All:
I have the following problem at hand -
My Action class calls a DAO method that returns an arraylist of ValueObjects. This arraylist is set in the request. Now I am trying to use logic:iterate tag to display the valueobjects as table rows in a jsp page.
Please note that the FormBean is different from the valueObject I am trying to display. If anyone can guide me on how to achieve this, I would be obliged.
Thanks in adv.
Rick Hightower
Author
Ranch Hand

Joined: Feb 20, 2002
Posts: 350
<logic:iterate id="currentVO" name="nameOfCollection">
<bean:write name="currentVO" property="bar"/>
</logic:iterate>

Best I can do without more specifics.


Rick Hightower is CTO of Mammatus which focuses on Cloud Computing, EC2, etc. Rick is invovled in Java CDI and Java EE as well. linkedin,twitter,blog
 
Consider Paul's rocket mass heater.
 
subject: Iterate an arraylist of valuobjects in jsp
 
Similar Threads
pass bean property values to javascript function
EJB n classloading ..
iterate problem in struts2
dynamic multibox - populate an Array in ActionForm from Action class
Doubt in request.setAttribute ("ListBean", userList);