Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > POST request as image url

Reply
Thread Tools

POST request as image url

 
 
Raoul Markus
Guest
Posts: n/a
 
      11-29-2005
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?



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to redirect every urel request to test.py script with thevisitors page request as url parameter. Νίκος Python 1 07-21-2010 03:04 AM
POST request to SSL/HTTPS URL Dundonald Java 20 10-10-2007 01:21 PM
request.getRequestDispatcher(url).forward(request,response); problem jrefactors@hotmail.com Java 1 12-29-2004 05:13 AM
Post post post. Shel-hed Computer Support 2 11-08-2003 07:41 AM
Re: Accessing Request.InputStream / Request.BinaryRead *as the request is occuring*: How??? Brian Birtle ASP .Net 2 10-16-2003 02:11 PM



Advertisments