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 / telo

Data saved in a ServletContext scope is shared by all
servlets and JSPs in the context. The data stored in the servlet
context is destroyed when the servlet context is destroyed.
//save and get an application-scoped value
getServletContext().setAttribute(“application-value”,
“shopping-app”);
value = getServletContext().getAttribute(“application-value”);

Is This Answer Correct ?    28 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by a servlet?

1139


What is the use of httpservletresponsewrapper?

1024


Explain their methods? Tell me their parameter names also have you used threads in servlet?

1093


Describe in brief RequestDespatcher?

1182


What is http servlet?

1103


Can we get PrintWriter and ServletOutputStream both in a servlet?

1188


What are the difference between RMI and Servlets?

1611


What do you mean by web applications? Explain web application directory arrangement?

1005


What is a servlet context object?

1189


What are the types of Session Tracking ?

1207


What is session tracking?

1264


How do you define a servlet?

1037


What is the default http method in the servlet?

1347


What is the disadvantage of cookies?

1034


What are the supporting protocol by HttpServlet ?

1250