POST request as image url

Discussion in 'Java' started by Raoul Markus, Nov 29, 2005.

  1. Raoul Markus

    Raoul Markus Guest

    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?
    Raoul Markus, Nov 29, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brian Birtle
    Replies:
    2
    Views:
    1,994
    John Saunders
    Oct 16, 2003
  2. Replies:
    1
    Views:
    6,257
    Ryan Stewart
    Dec 29, 2004
  3. Dundonald

    POST request to SSL/HTTPS URL

    Dundonald, Oct 6, 2007, in forum: Java
    Replies:
    20
    Views:
    1,799
    Roedy Green
    Oct 10, 2007
  4. Íßêïò
    Replies:
    1
    Views:
    420
    Jason Friedman
    Jul 21, 2010
  5. qa4ever
    Replies:
    1
    Views:
    147
    Brian McCauley
    Nov 3, 2004
Loading...

Share This Page