Change the src of Image dynamically

2002-11-20 Thread Alireza Fattahi
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

RE: Change the src of Image dynamically

2002-11-20 Thread Jon.Ridgway
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

Re: Change the src of Image dynamically

2002-11-20 Thread Marcus Biel
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

RE: Change the src of Image dynamically

2002-11-20 Thread Karr, David
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