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


Please Help Members By Posting Answers For Below Questions

What is getservletcontext?

553


What is difference between cookies and httpsession?

548


What are the uses of servlets?

624


What is a generic servlet?

524


What do you mean by servlet context?

607






Elucidate servlet attributes and its scope?

571


What is the use of servlet wrapper classes?

673


Which is the methods of generated servlet?

686


Why servlet is used as controller ? Not JSP? I want complete explation?

661


Which method is called when reference variable is passed in system.net?

1838


How can an existing session be invalidated?

668


Write the code to get the server information in servlet.

575


Explain the concept of ssi ?

595


How do I use cookies to store session state on the client?

538


What are the types of protocols supported by httpservlet ?

708