Latest Tutorials| Questions and Answers|Ask Questions?|Site Map

Home Help Java W Web Container

Related Tutorials


Share on Google+Share on Google+

Web Container

A Web application runs within a Web container of a Web server.

Web Container


A Web application runs within a Web container of a Web server. The Web container provides the runtime environment through components that provide naming context and life cycle management. It manages the execution of JSP page and Servlet components for the web applications. Apache Tomcat is the web container that is used to Implementation for the Java Servlet and JavaServer Pages technologies.
Now lets see what a servlet container does:  

  • The servlet container loads the servlet class and calls the init method of the servlet as soon as the servlet is called for the first time.
  • Then this container makes an instance of javax.servlet.ServletRequest and javax.servlet.ServletResponse for each request.
  • Then it passes the ServletRequest and ServletResponse objects by invoking the servlet's service method.
  • Finally, it calls the destroy method and unload the servlet class when the servlet class is to be shut down.

Read more at:



If you enjoyed this post then why not add us on Google+? Add us to your Circles

Liked it!  Share this Tutorial

Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: November 18, 2009

Related Tutorials

Discuss: Web Container   View All Comments

Post your Comment

Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image