• Post Reply Bookmark Topic Watch Topic
  • New Topic

Default content-type  RSS feed

 
cyril vidal
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!