POST request as image url

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top