Making JSP page not set the response content-type

Posted by doublep on Stack Overflow See other posts from Stack Overflow or by doublep
Published on 2010-04-26T18:08:56Z Indexed on 2010/04/27 2:03 UTC
Read the original article Hit count: 371

Filed under:
|

Is it possible to make JSP pages not set any content type on response? In my setup, JSP doesn't directly generate the response, but rather an intermediate presentation, which is then processed by additional Java code that creates HTML or JSON based on that. So, can I somehow make JSP not set content-type on the response and leave it to the intermediate code? If I just remove contentType="..." in a JSP, it still defaults to text/html.

© Stack Overflow or respective owner

Related posts about jsp

Related posts about content-type