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="nam" name="pplName" id="age" name="pplAge">
<%= 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
"
John 20
John 40
Maria 20
Maria 40
"
How can i solve this problem?
Thanks in advance
Carlos Pereira
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="nam" name="pplName" id="age" name="pplAge">
<%= 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
"
John 20
John 40
Maria 20
Maria 40
"
How can i solve this problem?
Thanks in advance
Carlos Pereira