Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Logic:Iterator

Status
Not open for further replies.

MadZippo

Instructor
Nov 30, 2003
1
PT
Hi!

i have something like for example 2 lists, one with the names of people (pplName) and the second with their ages (pplAge) passing as two different lists to the sessionAttributes.

let's say i have John with 20 years old and Maria with 40.

i wanted to do something that printed:
"
John 20
Maria 40
"
and i thought of something like
<logic:iterate id=&quot;nam&quot; name=&quot;pplName&quot; id=&quot;age&quot; name=&quot;pplAge&quot;>
<%= nam%> <%= age%> <br/>
</logic:iterate>

but it seems that logic:iterate dosen't support multiple id's.

And if i try to nest multiple logic:iterates i don't get the result i wanted. Instead i get
&quot;
John 20
John 40
Maria 20
Maria 40
&quot;

How can i solve this problem?

Thanks in advance

Carlos Pereira
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top