Re: About Question enthuware.jwpv6.2.956 :
Posted: Wed Jan 09, 2013 5:53 pm
sendError or sendRedirect does throws IllegalStateException when the response is committed. i.e. flushed sent to the client. in case the response is in buffer, it is cleared and appropiate headers/response is set corresponding to the method used. in the question we never used flush() so that the call to sendError will wipe out the buffer and set its own response WITHOUT throwing IllegalStateException