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
Users Mailing List'
Subject: Change the src of Image dynamically
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
Use logic present or logic equal tags.
e.g.:
logic: equal name=yourBean property=yourImageProperty
value=image1/
html:img src=image1.jpg/
/logic:equal
logic: notEqual name=yourBean property=yourImageProperty
value=image1/
html:img src=image2.jpg/
/logic:equal
marcus
[EMAIL
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
4 matches
Mail list logo