Use the indexId and then put a matching List URL String:

<logic:iterate id="myimages" name="somebean" property="images"
indexId="index">
    <html:img src="<%= myList.get( index ) %>" border="0"/>
</logic:iterate>

This assumes you have a 1:1 correlation between the images and their values.

Mark

-----Original Message-----
From: Vinh Tran [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 4:51 PM
To: [EMAIL PROTECTED]
Subject: logic:iterate with nested html:img


Anyone know how to set properties to an html:img tag within a logic:iterate
tag?

For example:

<logic:iterate id="myimages" name="somebean" property="images">
    <html:img src="<NEED TO ADD VALUES FOR SRC>" border="0"/>
</logic:iterate>

Thanks all.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to