Hi Jon,
 Same here, no solution, but I found in the Struts Javadoc that there is
still a +ACI-TODO+ACI- for the scr field to make it settable:
http://jakarta.apache.org/struts/api-1.0/org/apache/struts/taglib/html/ImgTa
g.html

This is what I did:
+ADw-img src+AD0AIgA8-bean:write name+AD0AIg-afriend+ACI- 
+property+AD0AIg-imageUrl+ACI- filter+AD0AIg-true+ACI-/+AD4AIg-
alt+AD0AIgA8-bean:write name+AD0AIg-afriend+ACI- property+AD0AIg-firstName+ACI- 
filter+AD0AIg-true+ACI-/+AD4AIg- /+AD4-

Not so pretty though... so if you found a better way, I am very interested.

Elise

-----Original Message-----
From: Jon Ferguson +AFs-mailto:ferguson+AEA-ieee.org+AF0-
Sent: Monday, January 14, 2002 1:36 AM
To: Struts Users Mailing List
Subject: Using the IMG tag dynamically


Hey guys,

I must be missing something.  I've got an ActionForm with a bean attribute
+ACI-item+ACI-... which has an image name under a property.. say 
++ACI-item.imageName+ACI-.
I would like to use the image tag to use this image dynamically..

+ADw-html:img page+AD0AIg-/images/myImage.gif+ACI- alt+AD0AIg-No Image Set.+ACI-/+AD4- 
+ works fine...
but
it's not dynamic..

surely this is trivial... but what am I missing? ..it would be neat if I
could
treat it like the +ADw-html:text+AD4- tag... and just reference the property..
+ADw-html:text property+AD0AIg-item.imageName+ACI-......
but I can't see how to do that.

Thanks,
Jon


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

Reply via email to