• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Servlet Context

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is a Servlet Context ?? Where do u specify it?
 
Sheriff
Posts: 440
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Basically a ServletContext is used to maintain a state for a web application (non-specific user). Much in the same way a Session object is used to maintain state of a client on a server.
I would recommend looking at a book called Professional Java Server Programming (ISBN 1-861002-77-7) for more information regarding where to specify, configure, initialize, access it, etc. It's an involved process but is very cool and worth while learning it if you're doing this type of programming.
Matt
 
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agree; that is a good book...
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if u want to know about servlet context just for awareness,
then its ok.But it is of troublesome when we use it in real
time applications.
It is not supported now .(sinnce javaweserver2.0 coz' its a dangerous (ref: jsdk docs) class)
regards..
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your statement about ServletContext
"it is not supported now .(sinnce javaweserver2.0 coz' its a dangerous (ref: jsdk docs) class)"
it totally off the wall.
The ServletContext is how your servlet finds out about various Application level parameters and is an integral part of the 2.2 Servlet spec.
In a JavaServer Page, the "application" object is a ServletContext.
You may have been thinking of HttpSessionContext which is now deprecated for security reasons.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic