As far as
JSP is concerned,
The initial response content type is set to the TYPE value of the contentType
attribute of the page directive. If the page doesn�t provide this attribute, the initial content type is �text/html� for JSP pages in standard syntax and �text/xml� for JSP documents in XML syntax.