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
What is url encoding and url decoding
What is string tokenizer?
Can we override servlet service method?
What are sessions in servlets?
Explain the working of service() method of a servlet.
What do you mean by web applications? Explain web application directory arrangement?
What is servlet in tomcat?
What do you mean by filter in servlet?
What is called a session?
What is the default http method in the servlet?
What is the use of request dispatcher interface?
Which interface must be implemented by all servlets?
Which httpsession object is used to view and manipulate information about a session?
How to read request headers from servlets?
Elucidate servlet attributes and its scope?