wood burning stoves 2.0*
The moose likes Servlets and the fly likes servlet context and servlet container Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet context and servlet container" Watch "servlet context and servlet container" New topic
Author

servlet context and servlet container

rajaraman navaneethan
Ranch Hand

Joined: Feb 26, 2005
Posts: 86
hi friends,
i have just started working on servlets.can u people explain me what is servlet context and wat is servlet container.

regards,
raja
Rajesh Tarigopula
Greenhorn

Joined: Oct 19, 2004
Posts: 8
Hi raj,
ServletContext is a container to hold application lever info.
Pls go through the java specification once.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Originally posted by Pandoo Go:
Hi raj,
ServletContext is a container to hold application lever info.
Pls go through the java specification once.


Why Java specification ?

http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletContext.html


Groovy
Atul Agarwal
Greenhorn

Joined: Apr 15, 2005
Posts: 6
Hi Raja,

ServletContext interface provide a place to hold information that can be share with all the Servlets & JSPs in an application. It intializes at the time of server startup with the values decalred in the Deployoment Descriptor.
Its better to call Web Container instead of Servlet Container, which holds all Servlets and JSPs(later converted to Servlets) instances. Also web container takes care of life cycle of each servlet and provide call back methods for servlets.

Regards,
Atul


SCJP, SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlet context and servlet container