Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how a servlet is instantiated, whether the container calls
init() or by calling any other method? please somebody reply..

Answer Posted / suraj kumar

The servlet is controlled by the container in which the servlet has been deployed. When a request is made to a servlet, its mapping is searched in web.xml. If mapping found then the container performs the following steps.
a.If an instance of the servlet does not exist, the Web container loads the servlet class.
b.Creates an instance of the servlet class.
c.Initializes the servlet instance by calling the init method

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by servlet? What are the parameters of the service method?

1036


What is ServletConfig object?

1191


Why is a constructor needed in a servlet even if we use the init method?

1144


List some life cycle methods of a servlet.

1072


What do you mean by cgi and what are its drawbacks?

989


What is the difference between encodeRedirectUrl and encodeURL?

1124


What are the supporting protocol by HttpServlet ?

1204


How to generate the server side programming and the advantages of it over the other languages?

1005


What do you mean by session tracking?

1224


What is webservlet?

1002


Explain the difference between a web server and a web container?

1015


If my browser does not support cookie, and my server sends a cookie instance what will happen?

1105


What is servlet in tomcat?

1064


How do you get the ip address of the client in servlet?

1017


What is the disadvantage of cookies?

997