POST request as image url
- From: Raoul Markus <raoul.markus@xxxxxx>
- Date: Tue, 29 Nov 2005 23:09:37 +0100
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?
.
- Prev by Date: Re: Creating an object during runtime
- Next by Date: a Timer in a URLConnection
- Previous by thread: Creating an object during runtime
- Next by thread: a Timer in a URLConnection
- Index(es):
Relevant Pages
|