File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Nested loops 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 "Nested loops" Watch "Nested loops" New topic

Nested loops

saurav sarkar
Ranch Hand

Joined: Jan 07, 2007
Posts: 180

Hi All,
I want to implement nested loop in Struts please
tell me how can i achieve this by struts tags.

I have a VO called LeadVO which contains a string and
an array of strings.
First i want to iterate over the size of the collection of the VO objects.
Then for each String i want to iterate over the array of strings.

I tried to look into the logic tags i am not able to get that
please help.

Be Objectively Oriented.Explore the power of OOPs.
My Blog, Eclipse EMF Query committer.
Jibitesh Prasad

Joined: Feb 20, 2007
Posts: 20
saurav sarkar
Ranch Hand

Joined: Jan 07, 2007
Posts: 180

thanks Jibitesh for the reply.
i think i am missing out something.

acc to this, the property will be the 'the string of arrays'.
It wont work i think.I am getting errors for it.
Please help
saurav sarkar
Ranch Hand

Joined: Jan 07, 2007
Posts: 180

I am getting this error

My JSP code

the property employeeName is the array String.
please help to put Array of Strings in the correct way in the JSP.

Thanks in advance,
subject: Nested loops
Similar Threads
problem with <logic:iterate>
Struts Iterator best Object usage
Converting Strings fields to base type when using a VO
struts with jdbc
Problem with displaying result of the query - JSTL