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

How do you define a servlet?

984


What is called Session Tracking?

1182


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

964


explain the advantages of servlet life cycle?

974


Why doesn’t a servlet include main()?

1042


Difference between java beans & servlets?

1055


Explain web application directory arrangement?

1060


What is the default http method in the servlet?

1290


Explain request dispatcher and its methods.

985


Can we use the constructor, instead of init(), to initialize servlet?

1099


How does tomcat servlet container work?

1074


What are the different types of servlets?

1007


How can the session in servlet be destroyed?

1151


When Servlet is unloaded?

1099


What do you mean by singlethreadmodel interface?

1041