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...

Is there any differance b/w getting servlet context from
servlet config and session? if yes then what is that?

Answer Posted / katamraju

Yes, some difference is there b/w servletconfig , servlet
context and session.
ServletContext:This is an interface created by webcontainer
based on class provided by webcontainer wendor,the
webcontainer will be create ServletContext Obj for the whole
web-application.
ServletConfig:This also an inteface and created by
webcontainer based on class provided by webcontainer vendor,
webcontainer creates servlet config obj forevery resource
that is available in webapplication.
session:session can be used to develop stateful application.

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What if we pass negative value in load-on-startup?

1284


How do you invoke a Servlet? What is the difference between doPost method and doGet method?

1146


What is a generic servlet?

958


What exactly is a servlet?

1009


Can we get PrintWriter and ServletOutputStream both in a servlet?

1147


Tell the new features added in servletrequest interface i.e. Servlet 2.4

1172


What is ServletContext object?

1102


What is servlet? Explain

1067


How can I send user authentication information while making URL Connection?

1004


Can you create a deadlock condition on a servlet?

1083


What is cookies in servlet with example?

1125


In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify

1005


What is difference between cookies and httpsession?

1095


How can we create deadlock situation in servlet?

1433


What is meant by a servlet?

1104