posted 17 years ago
Hi,
BEFORE dispatching a forward the buffer is cleared, so whatever is written before that point will not be sent to the browser.
AFTER dispatching a forward, before returning to the callee, "the response content must be sent and committed, and closed by the servlet container" (jsr). So, whatever you try after that, you can't send any more data to the client.
Consider that the specs say that you get an IllegalArgument exception if you commit something BEFORE calling the forward, and NOT after.