You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jon Ferguson <fe...@ieee.org> on 2002/01/14 01:36:03 UTC
Using the IMG tag dynamically
Hey guys,
I must be missing something. I've got an ActionForm with a bean attribute
"item"... which has an image name under a property.. say "item.imageName".
I would like to use the image tag to use this image dynamically..
<html:img page="/images/myImage.gif" alt="No Image Set."/> 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 <html:text> tag... and just reference the property..
<html:text property="item.imageName"......
but I can't see how to do that.
Thanks,
Jon