hi, brothers, I do not get servlet life cycle correctly, I hope any person who understand servlet life cycle explains the following:-
1- The init() method gets called once when a servlet instance is created for the first time & when the servlet instance gets removed, the destroy() method gets called when these actions happen? if we have 2 pages, one has button just redirect to other which has form that his data is entered to db and redirect to first page when press submit button. 2- init() and destroy() methods get called only once while service(), doGet(), and doPost() methods are called a number of times depending on how many HTTP requests are received. when do we have multi-requests (multi-calls for service() method) between init() and destroy() calls? Regards, --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en -~----------~----~----~----~------~----~------~--~---