Hello Simon, in order to send two actual responses to the client, the client MUST send two requests to the server. This can be done without closing the connection, which is called keep-alive.
While there are theoretical options to send an intermediate response, these are typically not supported by server-side APIs such as the Servlet API. Nor are they understood by the typical HTTP clients, such as browsers. Nor would you be able to send any _content_ with the intermediate response, such as a "please wait" page with an animation. It would be a custom extension of the HTTP protocol and would bring you all kinds of problems with proxies, browsers, and servers. The appropriate way to achieve your purpose is to start a worker thread on the first request, then have the client send a new request and block that one until the worker has computed the result. hope that helps, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
