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 if you need to span your transaction across multiple servlet invocations?
What are the types of servlets? Explain
What are the types of protocols supported by httpservlet ?
What do you mean by servlet?
What is the difference between the servlets and cgi programs?
What is the difference between encodeRedirectUrl and encodeURL?
Which is the methods of generated servlet?
Is servlet thread safe?
What is a web application and what is it’s directory structure?
Explain how to improve Servlet Performance?
What is the process to implement doget and dopost methods?
What do you mean by url pattern in servlet?
Write a program to show the functionality of servlets.
What is servlet container?
How can we refresh automatically when new data is entered into the database?