struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Kriger" <akri...@greaterthanone.com>
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
vector?

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'/>,
</logic:iterate>

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)

thx



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message