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
What are the two important api's in for servlets?
Explain the role of dispatcherservlet and contextloaderlistener.
Why do we have servlet filters?
What is servlet in tomcat?
What is the type of method for sending request from http server?
How can we perform any action at the time of deploying the project?
Which java framework is most popular?
Why HttpServlet class is declared abstract?
Servlet is pure java object or not?
Define declaration.
What are advantages of servlets over cgi?
Explain url encoding in servlet?
Explain the architechure of a servlet?
How many servlet objects are created?
How can we refresh automatically when new data has entered the database?