struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Kriger" <>
Subject logic:iterate question
Date Wed, 02 Oct 2002 18:51:40 GMT
I have two vectors of the same length. I can iterate over one and retrieve
values. How can I use the index of that iteration to reference the other

For example
vOne = { 1,2,3,4 }
vTwo = { a,b,c,d }

I iterate over vOne producing 1,2,3,4,
<logic:iterate id='item' name='vOne' indexId='idx'>
	<bean:write name='item'/>,

How can I get the output to produce 1:a,2:b,3:c,4:d,?

(note the formatting is not important, just interested in how to reference
vTwo using vOne's idx)


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message