About Question enthuware.jwpv6.2.956 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
gurpreet_asrgndu
Posts: 55
Joined: Thu Jan 03, 2013 7:51 am
Contact:

Re: About Question enthuware.jwpv6.2.956 :

Post by gurpreet_asrgndu »

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

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.956 :

Post by admin »

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.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest