2012/12/30 Burton Rhodes <[email protected]>:
> Just tried that without success.  Oddly, even when I debug the code, the
> reponse.contentType is not changed immediately after the line:
> response.setContentType("text/plain").  I am wondering if the contentType
> cannot be set twice (or overridden once set)?

As mentioned here [1] you can change content-type till getWriter is
called or response committed

[1] 
http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponse.html#setContentType(java.lang.String)


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to