• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HF: Error on page 62 (Exercise Solutions) ?

 
Frederico Werly
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Task :
Converts a response object to an HTTP response.
Answer :
Web server - gets the response from the conainer.

I Think :
Container - like is showed on page 43 - "...container converts the response object into an HTTP response" .

What is the right answer ? i know that the Web Server gets the response from the container , but it was not answered right ?

Thanks a lot

 
Sandya Bhaskara
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
even i got the same doubt..but i think its the server that adds header info to the response and sends the http response to the client...HFS clearly states that it wont show the server unless required...may be we got confused because of that-container sending the HTTP response ....
 
Frederico Werly
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but the question is : Converts a response object to an HTTP response .
i think that is the container ... after this the web server send the http response to client ..

im confused ..


 
Roger Yates
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Frederico,

I have to agree with you - I think it is the container that does the conversion.
There seem to be a few ambiguous diagrams/comments on this one.
- p39 (bottom) has a diagram that includes the web-server, where the http-response gets sent back to the client with extra status info at the top of the response, but the moment of conversion seems ambiguous.
- p43 stating "container converts the response object into an HTTP response"
- p62 stating that the web server "gets the response from the container" (but does it do the conversion?!) and no mention of the container.

It seems to me that either an answer ("container converts response") is missing from p62, or the comment on p43 is wrong.

Sadly, my knowledge isn't good enough to give you a definitive answer on this - can anyone?

The burning question is:
Does the container or the web server "convert the response object to an HTTP response"?
 
Gaurav Sahni
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Although, the question was posted long back, the fire is still buring hot ...

 
Kathy Sierra
Cowgirl and Author
Rancher
Posts: 1589
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This was just a bad question and hard to answer, but it's really the Container more than the web server, so you're right. On that exercise, if *I* were taking it, I'd choose "Container" instead of "Web Server", but it's a little vague anyway, and in the case of Tomcat, for example, it IS acting as the Web Server as well as the Container.

That's what I'd say... but I didn't create that exercise. One of my other CO-AUTHORS did that one

This was more of a conceptual question than a formal technical one, so you will NOT have a question like this on the exam.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic