how a servlet is instantiated, whether the container calls
init() or by calling any other method? please somebody reply..
Answer Posted / harikumar
if we deploy our web root dir in webapps , then we call url
from the browser.
then after loading , it calls the init() method first.
There r two tow init() methods(first init() & second init
()).
Is This Answer Correct ? | 2 Yes | 9 No |
Post New Answer View All Answers
What is the directory structure of a war file?
What is a server side include (ssi)
How the typical servlet code look like ?
What is a web application and what is it’s directory structure?
Is dispatcher servlet a singleton?
What is context in servlet?
What are the different methods involved in the process of session management in servlets?
What is the functionality of actionservlet and requestprocessor?
Tell us something about servletconfig interface.
What is the use of servletconfig interface?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
What are the new features added to servlet 2.5?
Which HTTP method is non-idempotent?
What are the annotations used in servlet 3?
What is servlet collaboration?