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

Which method the Servlet container call to create the
instance of the servlet?

Answer Posted / ravikiran(aptech mumbai)

After The successfull parsing of web.xml container will find
the particular class name which is mapped in web.xml and calls
class.forName(classname).newInstance() method.Then calls
init(ServletConfig config) of GenericServlet for
initializing the instance of the servlet.

Is This Answer Correct ?    35 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we fetch the attributes related to a servlet on a different servlet?

1150


How printwriter is different from servletoutputstream?

1022


What are important features of Servlet 3?

1094


Can we override destroy method in servlet?

996


How can we implement a jsp page?

1144


What are the differences between the servletconfig interface and the servletcontext interface?

1196


What is the life cycle of a servlet?

1544


What is meant by session? Tell me something about httpsession class?

1038


Define declaration.

1084


What is the directory structure of web application?

991


what do you understand by url rewriting?

964


What do you mean by httpservlet and how it is different from the genericservlet?

1061


Explain the servlet context.

1158


What is the procedure of invoking different servlet in a different application?

1022


Why are servlets used?

1045