when the webcontainer creates ServeletConfig,ServletContext
objects? befoure creating the Servlet object or not?
Answer Posted / 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 |
Post New Answer View All Answers
Difference between java beans & servlets?
Can we use threads in Servlets?
What is called a session?
How can we create deadlock situation in servlet?
What is servlet looping or chaining?
What is the requirement of servlet config and servlet context implemented and how are they implemented?
Write a simple servlet program to print the contents of html.
What is the difference between a generic servlet and http servlet?
What is the purpose of inter-servlet communication?
What are the differences between forward() method and sendredirect() methods?
What are the different types of servlets?
What is the difference between servlet and jsp?
What is the difference between CGI and Servlet?
Can we override servlet service method?
What’s the difference between genericservlet and httpservlet?