q)What will happen if you donā??t write the implementation in service () of our Servlet? Which method () it will call?
q2)How many times init() execute and what happen if browser is close and server shutdown ? JSP life cycle?
In the service() method servlet is implemented for providing a service to the client. service() method may call the doXXXX() method (where value of XXXX can be Get, Delete, Options, Post, Put, or Trace) of HttpServlet object.
The init() method is called only once by the servlet container throughout the life of a servlet. By this init() method the servlet get to know that it has been placed into service. If server is shutdown the init() method will not return within a fix time set by the web server and the servlet can't be placed into the service.
For jsp life cycle please go through the link http://www.roseindia.net/jsp/simple-jsp-example/LifeCycleOfJspPage.shtml
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.