Hi,
The sendRedirect() is simply ignored. If I comment the flush() line, it gets redirected, but still without the exception.
After the flush(), the server surly throw the exception, bu as the response is commited it will not display in your browser. Check your server log. It should printed there.
Without flush, though you are writing to the response writer, the response is not commited ( as thers is some buffering for the writer), the serdRedirect will work without any exception.
Thanks
Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0