Hi to everybody,
I have a little doubt about error handling mechanism.
Suppose that we have a
servlet that:
1. Writes something to the writer and flushes it
2. Throws an error after the flush
Suppose that the error is managed by the application server.
How can the application server send an error page if the content of the servlet that has thrown the error has already sent something to the client? It's too late to either dispatch a request or send a redirect to the client...
Thank you in advance!