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 GenericServlet class?
Whether thread can be used in servlets?
How do you deal property files in servlet?
How to get the path of servlet in the server?
Difference between httpservlet and generic servlets?
What is the use of httpservletresponsewrapper?
Explain the features are in servlet 3?
What are the types of servlet?
Why do we have servlet listeners?
Explain get and post.
What mechanisms are used by a Servlet Container to maintain session information?
Why do we use sendredirect() method?
What is the difference between servlet and jsp?
What is a cookie What is the difference between session and cookie
What is servlet interface?