- Now let us talk about the servlet life cycle.…All the servlet classes that we have created…so far: login, servlet, and any other…that you may see in your project,…all of them have extended HttpServlet…and have either overridden the doGet or the doPost method…so that actions are taken accordingly.…And whenever we hit the request from the client,…the control automatically came inside…one of the doGet or the doPost methods.…But in Java, whenever you want to invoke a method…of any class, you need an object of that class…and then a reference variable to call that method.…

But we have never instantiated any of our Servlet classes…nor did we call any of these methods ourselves.…So what is this entire thing that goes behind the scenes…where this is getting worked out automatically?…That is exactly what we need to understand…as a part of the servlet life cycle.…The servlet life cycle firstly is entirely managed…by the server container.…In our case it is TomCat, or it could be any other…JEE-compliant container source.…

Resume Transcript Auto-Scroll

Author

Released

2/6/2018

Learn how to build dynamic web pages using servlets and JavaServer Pages (JSP). This course starts with the basics, covering the fundamentals of servlets. Instructor Ketkee Aryamane explains how to set up your environment, and discusses GET and POST requests, as well as forwarding and redirection. She then moves on to JSP, reviewing fundamental concepts such as the JSP life cycle. She also covers session management, filters, and listeners. To wrap up, she goes over the JSP Standard Tag Library (JSTL) core module and fmt module, and also discusses the development of custom tags.