• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between Web Server and Web Container

 
Kunaal A Trehan
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I want to know whether there is any difference between web server and web container.I feel that all web severs have web container inbuilt.
Is this true?

Plz clear my doubt

Rgds
Kunal
 
chandana sapparapu
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A web server just serves static resources like html pages, images etc (or cgi/perl if it has those modules also). Basically a web server is something which serves http requests.

A web container executes servlets, jsps and provides dynamic content. Web(servlet) container is the core of any web server that meets the servlet specifications (set by Sun).

A web server need not include a servlet container all the time. Only those who claim to be servlet spec compliant have servlet containers.

Hope that helps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic