About Question enthuware.jwpv6.2.956 :
Moderators: Site Manager, fjwalraven
-
- Posts: 55
- Joined: Thu Jan 03, 2013 7:51 am
- Contact:
Re: About Question enthuware.jwpv6.2.956 :
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
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.956 :
One should not depend on flush. If the response is bigger than the buffer, it would have been flushed anyway. You don't know the buffer size either.
HTH,
Paul.
HTH,
Paul.
Who is online
Users browsing this forum: No registered users and 2 guests