how a servlet is instantiated, whether the container calls
init() or by calling any other method? please somebody reply..
Answer Posted / ashutosh
Servlet is instantiated by servlet container by calling
method Class.forName(Servlet class name).newInstance();
First of all Servlet Container looks into the
deployment descriptor(web.xml) .It looks the definition of
Servlet.And Than instantiate it by calling
Class.forName(Servlet class name).newInstance();
| Is This Answer Correct ? | 19 Yes | 5 No |
Post New Answer View All Answers
Why is Servlet so popular?
Can you call a jsp from the servlet?
Explain Action Servlet?
What is dispatcher servlet?
What do you mean by web applications? Explain web application directory arrangement?
How can we upload the file to the server using servlet?
Whats the advantages using servlets over using CGI?
Given the request path below, which are context path, servlet path and path info?
Should I override the service() method?
Explain the architechure of a servlet?
Where do you define dispatcherservlet?
What is meant by Servlet? What are the parameters of service method?
What is URL Encoding?
Explain the methods of request dispatcher in servlet?
What is the