R
Raoul Markus
Hi,
I have an image that comes as a answer to an POST request to a host2. I need
to use that image within in jsp, served from host1.
We use today some javascript to make an form in a page, and then invoking
form.submit():
<form name="viewer" action="http://host2/servlet" >
<input type="hidden" name="Id" value="<%=Id%>" >
</form>
<script language="javascript">
document.viewer.submit();
</script>
But this replaces the whole page with the image. I need only the portion
within an
<img src="${somehow the form request invoked}"/>
I though about using a frame containing that the form before. but this is an
ugly workaround.
I cannot work with <img src="http://host2?input1=value&...."> since this is
GET request and my image is only returned on POST requests.
any ideas?
I have an image that comes as a answer to an POST request to a host2. I need
to use that image within in jsp, served from host1.
We use today some javascript to make an form in a page, and then invoking
form.submit():
<form name="viewer" action="http://host2/servlet" >
<input type="hidden" name="Id" value="<%=Id%>" >
</form>
<script language="javascript">
document.viewer.submit();
</script>
But this replaces the whole page with the image. I need only the portion
within an
<img src="${somehow the form request invoked}"/>
I though about using a frame containing that the form before. but this is an
ugly workaround.
I cannot work with <img src="http://host2?input1=value&...."> since this is
GET request and my image is only returned on POST requests.
any ideas?