wood burning stoves*
The moose likes Servlets and the fly likes Overwrite HttpResponse from uncontrollable site Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Overwrite HttpResponse from uncontrollable site" Watch "Overwrite HttpResponse from uncontrollable site" New topic

Overwrite HttpResponse from uncontrollable site

san jan

Joined: Sep 26, 2000
Posts: 24
I want to submit a form to some url say "www.xyz.com/abc", now after i submit the form with all relevant and required details the form is submitted and the work is being done, and a response page is shown up from that site.
the actual problem is here, when i submit the form to a url on which i have no control, it sends me another response page, i want to overwrite this page with my own page saying "your work is done" i.e., i dont want that page of the uncontrollable site to comeup, but to have my own page instead.
Ronald Francis
Ranch Hand

Joined: Aug 02, 2001
Posts: 30
To hide the response from another server ,one way to go is:
Create a frameset with a hidden frame , and set the submit target to that form.
ie <form action= xxx target="myhiddenframe">
subject: Overwrite HttpResponse from uncontrollable site
Similar Threads
encodeURL() purpose and best place to use
How to get previous URL to current URL in spring MVC portlet
response.setHeader("Refresh", "10; URL=http:\\ www.javaranch.com");
How to submit two forms on same page?
How to submit request to another url