*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes who converts response object into Http response? container or web server? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "who converts response object into Http response? container or web server?" Watch "who converts response object into Http response? container or web server?" New topic
Author

who converts response object into Http response? container or web server?

Kiran Godishala
Greenhorn

Joined: Mar 16, 2009
Posts: 2
Hi all ,
In HFJS I could see in page 42 " the container converts response object into HTTP response" where as in page 61 it is said that the web server does that activity. Can any one conform which one is correct?
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9293
    
  17

Hi Kiran, welcome to javaranch.

The web server just passes client requests to the servlet container and the container is responsible for the conversion (I think so )...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Poonam Agarwal
Ranch Hand

Joined: May 12, 2008
Posts: 323
Ankit is right!!

web container is responsible for providing , implementation details for all the required interfaces. like servletRequest OR httpServletRequest.


Thanks <br />Poonam Agarwal SCWCD 86%
Kiran Godishala
Greenhorn

Joined: Mar 16, 2009
Posts: 2
Thanks Ankit and Poonam.

So I can conclude that the job of convertion from response object into HTTP response is done by container and hands it over to web server app which gives the same it to client, can I?
Poonam Agarwal
Ranch Hand

Joined: May 12, 2008
Posts: 323
Yes!
 
Consider Paul's rocket mass heater.
 
subject: who converts response object into Http response? container or web server?