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
Explain in brief the directory structure of a web application?
What do you mean by chaining in servlet?
Why jsp is better than servlet?
What's the difference between authentication and authorization?
What is the functionality of actionservlet and requestprocessor?
Why is http protocol called as a stateless protocol?
How to read request headers from servlets?
Explain the custom jsp tags and the beans.
Explain the servlet filter.
Where do you define dispatcherservlet?
What are the functions of an intercepting filter?
What is the difference between the servlets and cgi programs?
What do you mean by web applications?
Write the code to get the server information in servlet.
What is the major difference between servlet and applet?