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
Can you use javascript in servlets?
Why is http protocol called as a stateless protocol?
What is java servlet session?
What are the phases of servlet life cycle?
Tell us something about servletconfig interface.
List the Different types of servlet?
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
Describe servlet?
What are the different types of servlets?
Is dispatcher servlet a singleton?
How to get the server information in a servlet?
Explain the features are in servlet 3?
Why do we have servlet wrapper classes?
What is called servlet mapping?
What is http servlet?