• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

servlet context and servlet container

 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi raj,
ServletContext is a container to hold application lever info.
Pls go through the java specification once.
 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Everybody! Do the Funky Monkey! Like this tiny ad!
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic