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

Which one is the correct answer ( HFS) please clear

 
kajal mukergi
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In page 62 it was give that (4th row ) web server will convert a respondse object to an http response

but in page 43 right side corner it is given that"container converts the response object to into Http response.


CAN ANY TELL WHICH IS RIGHT ONE
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Both

A webserver is more term for anything that
receives HTTP requests (GET, POST, etc) and sends out HTML pages
in response. Apache, Tomcat, JBOSS is a web server.

A container like Tomcat is a web server that allows
server-side processing, o.a. Java servlets, JSP.

So a container is more specific than a webserver.
 
kajal mukergi
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if both why did they gave the answer like only web server

and till my knowledge i think it is(as in the book said)

web server is appache

and container is tomcat...

so can you clarify this
 
Padma priya Gururajan
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kajal,
Apache is the container and Tomcat is the server.
With regards,
Padma priya N.G.
 
Srinivasan thoyyeti
Ranch Hand
Posts: 558
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
kajal mukergi ,

Errata Source: http://www.oreilly.com/catalog/headservletsjsp/errata/headservletsjsp.confirmed
[62]
The 4th hand-written note "Gets the response from the container"
should read "Container generates the HTTP response stream from
the data in the response object" in the column marked "Container"

Your post proves you are on right track.
Keep the good work.
[ August 17, 2007: Message edited by: Srinivasan thoyyeti ]
 
Mark Garland
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apache is the container and Tomcat is the server.


I would have said the other way around.

Tomcat *can* act as a webserver, but it isn't as 'industry standard' or robust as Apache.

MG
 
kajal mukergi
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi priya...

ok but in head first series.. it was said that apache is webserver and container is tomcat
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic