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


when the webcontainer creates ServeletConfig,ServletContext
objects? befoure creating the Servlet object or not?

Answers were Sorted based on User's Feedback



when the webcontainer creates ServeletConfig,ServletContext objects? befoure creating the Servlet..

Answer / d.murali krishna

when ever a web application (.war file)is deployed in to
running server, immediatly the server reads corresponding
configuration file.


if parsing of that web.xml is succeded, then only
ServeletContext instance is created, other wise
ServletContext instance creation is failed. Then that web
application is not ready to provide services.

When ever a request is given to Servlet first time, first
Servlet instance is created, then its ServletConfig
instance is created.

Is This Answer Correct ?    15 Yes 5 No

when the webcontainer creates ServeletConfig,ServletContext objects? befoure creating the Servlet..

Answer / durga ganesh reddy

Just by receiving a request, the web container creates
ServletContext object(so it is called asapplication
object).After creating servlet object then ServletConfig
object will be created.For each servlet instance there will
be a ServletConfig istance is available separtely.

Is This Answer Correct ?    11 Yes 8 No

when the webcontainer creates ServeletConfig,ServletContext objects? befoure creating the Servlet..

Answer / pavankumar

when we deploy the web application.the server reads the contents from configuration file(web.xml file) and server checks whether corresponding servlet object is created or not if it is created the server does'nt creates if it is not there then it create
before that when we deploy the web application ServletContext is created.
After the creation of servlet object .then servletConfig is created for that corresponding servlet.

Is This Answer Correct ?    1 Yes 3 No

when the webcontainer creates ServeletConfig,ServletContext objects? befoure creating the Servlet..

Answer / ravikiran.chd

the servlet context & servlet config objects will be created
once the application is deployed into the container,

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More Servlets Interview Questions

What is HTTP Tunneling?

1 Answers   Wipro,


What is the difference between the http servlet and generic servlet?

0 Answers  


how JSP can extend servlet or interface ...?

3 Answers   IBM,


What are the jobs performed by servlets?

0 Answers  


What's the architecture of a servlet package?

0 Answers  


Can a jsp be called using a servlet?

0 Answers  


What is the purpose of dispatcherservlet properties?

0 Answers  


Why filter is used in servlet?

0 Answers  


What do you mean by cgi and what are its drawbacks?

0 Answers  


How many objects of a servlet is created?

0 Answers  


Which are the different ways you can communicate between servlets?

0 Answers  


how to pass parameter from servlet to html form

4 Answers  


Categories