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.
why don't you change the double quotes to single quote and try
<img src='<% "http://www.image.com"; %>' alt="image" height="190" width="190" id = "picture" />
You can use JSP scriptlet.
<img src="<%= url_var %>" alt="image" height="190" width="190" id="picture">
url_var is a java variable here, which puts the value into the src attribute.
Hope this helps you..
why don't you change the double quotes to single quote and try