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 / 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


Please Help Members By Posting Answers For Below Questions

Why is Servlet so popular?

1076


Can you call a jsp from the servlet?

1023


Explain Action Servlet?

1095


What is dispatcher servlet?

1066


What do you mean by web applications? Explain web application directory arrangement?

967


How can we upload the file to the server using servlet?

1091


Whats the advantages using servlets over using CGI?

1087


Given the request path below, which are context path, servlet path and path info?

1050


Should I override the service() method?

1094


Explain the architechure of a servlet?

1124


Where do you define dispatcherservlet?

1054


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

1060


What is URL Encoding?

1189


Explain the methods of request dispatcher in servlet?

1052


What is the element?

1052