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

head first question...

 
john guthrie
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm in chapter two of the head first book, and i either disagree with or misunderstand one of the questions on page 59. the questions have you choose who is responsible for certain actions, among the web server, the container, and the servlet. the one i have a problem with is the statement "converts a response object to an HTTP response." book answer is the web server, but i would have thought that this task is java-based (i.e. converting a java object to a specialized text string), and that therefore the responsibility would fall to the container. in other words, i am assuming that the web server knows nothing about java.

anyone want to support me or knock me down?
 
Bryan Basham
author
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congratulations, you found the first errata of HF-SCWCD.

You are correct that the container converts the "response object" into a response stream. I believe what we had intended (without seeing the page you are looking at) is that the web server gets a chance to modify the response stream that is returned by the container before being sent to the client, but the way you described the question it seems clear that you are right.

Cheers,
Bryan
 
Chengwei Lee
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bryan Basham:
Congratulations, you found the first errata of HF-SCWCD.


Will John get the next edition of the HF-SCWCD at a cheaper price or FOC for being the 1st?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic