I try change an image source by this code:
<img src="<% "http://www.image.com"; %>" alt="image" height="190" width="190" id = "picture">
But it won't display the image.
" alt="image" height="190" width="190" id = "picture"> But it won't " /> " alt="image" height="190" width="190" id = "picture"> But it won't " /> " alt="image" height="190" width="190" id = "picture"> But it won't "/>
I try change an image source by this code:
<img src="<% "http://www.image.com"; %>" alt="image" height="190" width="190" id = "picture">
But it won't display the image.
Copyright © 2021 Jogjafile Inc.
You can use JSP scriptlet.
url_var is a java variable here, which puts the value into the src attribute.
Hope this helps you..