when the webcontainer creates ServeletConfig,ServletContext
objects? befoure creating the Servlet object or not?

Answer Posted / pavankumar

when we deploy the web application.the server reads the contents from configuration file(web.xml file) and server checks whether corresponding servlet object is created or not if it is created the server does'nt creates if it is not there then it create
before that when we deploy the web application ServletContext is created.
After the creation of servlet object .then servletConfig is created for that corresponding servlet.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you load an image in a Servlet?

873


What exactly is a servlet?

717


How can we invoke another servlet in a different application?

927


How printwriter is different from servletoutputstream?

777


Is java servlet still used?

769


What is Servlet API used for connecting database?

821


What are life cycle methods of a servlet?

783


What is servlet container. how it works?

882


Which java application server is the best?

771


How does Cookies work in Servlets?

887


request parameter how to find whether a parameter exists in the request object?

780


Explain how does JSP handle run-time exceptions?

794


What is the use of send redirect () method?

795


What is called a session?

841


Why is httpservlet declared abstract?

797