Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet context

 
Muhammad Usman
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ricardo Cortes
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The servlet 2.3 specification should give you more than enough information on the servlet context...
http://jcp.org/aboutJava/communityprocess/first/jsr053/index.html
 
Anthony Villanueva
Ranch Hand
Posts: 1055
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic