struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Balasubrahmanyam Pasumarthy <>
Subject Re: html:img tag question
Date Mon, 05 Nov 2001 11:41:45 GMT
Build a Image class and keep a member with int value and write set/get methods.
Keep an array of that Image class in Action Form and Iterate thru it like 
this way.

<logic:iterate id="image" name="currentActionForm" property="images">
<html:img src="Image<%=Integer.toString(((Image)image).getImageNumber())%>"/>

Hope this helps

At 11:26 AM 11/5/01 +0100, you wrote:
>Hi ,
>I need to create a page that use the html:img tag. the link to build must be
>dynamic, it is in a logic:iterate loop.
>In my loop, I have a variable that contain a id. I want to build a dynamic
>src file name for my html:img tag that must look like
><img src='image123'>
>where 123 is the value if my ID.
>How can I do that ?

Balasubrahmanyam Pasumarthy
Sr. Consultant
Zensar Technologies Ltd,
Ph:     91-20-6684001 extn 612
         9822114193 (mobile)

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

View raw message