Hi,
SCWCD Exam Study Kit, P.41 tells that by default, if any setContenType() method is called, "then the content type is assumed to be
text/html".
The
servlet specification, on the other side, tells that "servelt containers must not set a default content type when the servlet programmer does not set the type".
I've tried it with
Tomcat, and without specifying any contentType, and any <html/> tag, the ouput is plain/text.
Any commentary?
Thanks,
Cyril.
SCJP 1.4, SCWCD, SCBCD, IBM XML, IBM Websphere 285, IBM Websphere 287