This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Default content-type

 
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