File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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 "", 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">
I agree. Here's the link:
subject: Overwrite HttpResponse from uncontrollable site
It's not a secret anymore!