File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes servlet context Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet context " Watch "servlet context " New topic

servlet context

Muhammad Usman

Joined: Nov 18, 2001
Posts: 29
hello to all
i m having difficulty in understanding the " servlet context" topic.
can any body explain it for me, with an example or atleast can tell me the site or article from which i can clearly understand the servlet context topic

an student of Operation Badar ( a educational movement in Pakistan).
Ricardo Cortes
Ranch Hand

Joined: Jan 23, 2002
Posts: 140
The servlet 2.3 specification should give you more than enough information on the servlet context...

Sun Certified J2EE Architect for the J2EE Platform (Part 1)<br />Sun Certified Web Component Developer for the J2EE Platform<br />Sun Certified Programmer for the Java 2 Platform
Anthony Villanueva
Ranch Hand

Joined: Mar 22, 2002
Posts: 1055
The ServletContext object can be considered as an object-oriented representation of the web application. It has methods which you can use to store/retrieve "global", i.e. context-wide data. Aside from the specs (which is always a very good resource), see the docs.
I agree. Here's the link:
subject: servlet context
It's not a secret anymore!