This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Struts and the fly likes Need to Iterate over a list of Objects Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Need to Iterate over a list of Objects" Watch "Need to Iterate over a list of Objects" New topic
Author

Need to Iterate over a list of Objects

Vamshi Jampala
Ranch Hand

Joined: Feb 23, 2008
Posts: 40
Hi All,

My first post

Does any one of you know how to iterate over a list of objects in JSP (Struts).

I have a Form: mfrForm

"mfrForm" has a list: industryList

"industryList" is a list of objects "industries"

industries class has

String indName,...


I want to iterate and be able to print all the indName in JSP

So please help me!!!

Thank you soo much in Advance
Robin John
Ranch Hand

Joined: Sep 10, 2008
Posts: 270

Hi Vamsi,

This should be really helpful --> Struts Tag Library
and you should be looking at logic:iterate tag.

This example might help

<logic:iterate id="yourId" name="yourList">
<td><bean:write name="yourId" property="indName" /></td>
</logic:iterate>

let me know...

...happy developing
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Need to Iterate over a list of Objects
 
Similar Threads
Has A relationship
Display of hashmap values using jstl
Create a Form with iterating rows, with the same data
Collections.sort() does not sort my ArrayList
Implicit Objects