• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

head first question...

 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
author
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic