struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karr, David" <david.k...@attws.com>
Subject RE: Change the src of Image dynamically
Date Wed, 20 Nov 2002 16:05:41 GMT
The "parameters" options on "html:img" are just to provide arguments to the URL specified as
the "src" or "path" attribute.  The "src" or "path" attributes specify the actual URL to the
image.  Use a scriptlet expression to specify the dynamic path to the image.

> -----Original Message-----
> From: Alireza Fattahi [mailto:Alireza.Fattahi@pdpsoft.com]
> 
> Hi,
> 
> How can we change the src of the image dynamically by using 
> <html:img> from
> a bean?
> I know that this tag accepts paramName and paramProperty, but 
> the result
> always have a "?" appended to the src.
> 
> Like:
> <html:img src="images/" paramName="BookRefVwcredForm" 
> paramProperty="imgSrc"
> paramScope="request" paramId="" />
> 
> Is it possible to change the src of the image dynamicly by 
> using <html:img>?
> 
> 
> Alireza.
> 
> --
> To unsubscribe, e-mail:   
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
<mailto:struts-user-help@jakarta.apache.org>

--
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