Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is ServletContext() and what is its use?

Answer Posted / shiva

One Servlet Context object will be created by the container
for one webapplication. That means all servlets can have a
scope to acess that context object. for example, let us
assume there 5 servlets are there in u r web application,
if u want to share same data to all servlets then we can
share that data using servlet context, because every
servlet can have interaction with that application
environment...

Is This Answer Correct ?    182 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between the print writer and servlet output stream?

954


What is servlet initializer?

915


List the Different types of servlet?

983


Is servlet a framework?

986


How does tomcat servlet container work?

1020


When should you prefer to use doget() over dopost()?

1085


How can we create deadlock situation in servlet?

1348


Write a servlet to upload file on server.

1035


What do you mean by servlet context?

1058


What are the uses of servlet and what is servlet chaining?

1045


Who is responsible for writing a constructor?

1205


Can a jsp be called using a servlet?

1076


What are the features added in Servlet 2.5?

1194


How do we call one servlet from another servlet?

981


Explain the differences between jsp and servlet.

936