2012/12/30 Burton Rhodes <burtonrho...@gmail.com>:
> 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: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to