Now I have to render this response in the browser, this HTML code is basically redirecting to another site.
My approach: we can set this html response in the request in spring controller, and after this we can forward the request to a blank jsp, and onload of blank jsp we can retrieve the html set in the request and render it using innerHtml,
and once the html is rendered it can redirect to a different site.
Please suggest if this is good appraoach or there is some other to achieve this.
A correction to the requirement, webservice is returning a html page, which has hidden fields and in the body tag itself there is a function which submit the form with hidden fields and action path of the form is of a third application, my earlier was based on assumptions, but now it is bit more clear...
so from controller we cannot redirect to the url, we have to navigate it the user to the client, but now the question about rendering the html received from webservice, was approach to it was correct.