You're assumption is that the setContentType method will throw the Exception if the reponse is already commited, but the API says otherwise (namely)
Sets the content type of the response being sent to the client, if the response has not been committed yet.
Therefore the content type just gets missed, but no error is reported.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35223
7
posted
0
By the way, there is no "HTTP 2.2"; the latest HTTP version is 1.1. Do you mean Servlet API version? If so, that's been obsolete for many years; we're at 2.5 now. [ August 21, 2008: Message edited by: Ulf Dittmer ]