1.

What Is The Use Of Init() Method In Servlet Life Cycle?

Answer»
  • The client enters the URL in the web browser and makes a request .The browser then generates the HTTP request and sends it to the Web server.
  • Web server maps this request to the corresponding SERVLET.
  • The server basically INVOKES the init() METHOD OF SERVLET.This method is called only when the servlet is loaded in the memory for the first time.Using this method initialization parameters can also be passed to the servlet in ORDER to CONFIGURE itself.



Discussion

No Comment Found