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
What is the difference between the include() and forward() methods?
What is the process to implement doget and dopost methods?
Can we fetch the attributes related to a servlet on a different servlet?
What is difference between cookies and httpsession?
What methodology can be followed to store more number of objects in a remote server?
What is a web application and what is it’s directory structure?
Can servlet have a constructor ?
Is servlet synchronized?
How do we go with database connection and log4j integration in servlet?
What do you mean by the servlet chaining?
Which is better jsp or servlet?
What are the steps involved in placing a servlet within a package?
How do you invoke a servelt?
What is the procedure for initializing a servlet?
Describe in brief RequestDespatcher?