Servlets

  • doGet() vs. doPost()

    Shalini Goyal - September 6, 2014
    In this post we are going to look at the details and difference between doGet() and doPost() methods. We have seen the servlet life cycle already in an earlier post and have looked at the service part of it. So when you invoke a servlet, the servlet engine passes the…
    continue reading

  • Servlet Example

    Shalini Goyal - September 5, 2014
    In the last post we discussed about the Servlet basics and covered the different phases of its life cycle. Over here we would try to write a very simple 'Hello World' servlet class. This example would be an http servlet as they are the one widely and mostly used (not…
    continue reading

  • Servlet Overview and Life Cycle

    Shalini Goyal - September 5, 2014
    What is a Servlet Servlet is nothing but a Java Class which services HTTP request. Consider servlet as a Java Class used to extend the capabilities of servers that host applications via a request-response programming model. Though servlets are not tied to a specific client-server protocol but they are mostly…
    continue reading