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
How do we translate jsp?
Can you create a deadlock condition on a servlet?
What do you mean by annotations in servlet?
What is the inter-servlet communication?
How can you run a servlet program?
Write a command to get actual path of a servlet to the server?
Explain session tracking and its importance?
Is servlet a server side scripting language?
What are different ways for servlet authentication?
Define the lifecycle for executing a jsp page.
What is a cookie What is the difference between session and cookie
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
What do you mean by cgi?
What are life cycle methods of a servlet?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?