Sunday, January 1, 2012

What are Java Servlet different HTTP Request Handling Methods

The basic Java Servlet interface defines a service method for handling client requests. This method is called for each request that the servlet container routes to an instance of a servlet.
The handling of concurrent requests to a Web application generally requires that the Web Developer design servlets that can deal with multiple threads executing within the service method at a particular time. Generally
the Web container handles concurrent requests to the same servlet by concurrent execution of the service method on different threads.

HTTP Specific Request Handling Methods

The HttpServlet abstract subclass adds additional methods beyond the basic Servlet interface that are automatically called by the service method in the HttpServlet class to aid in processing HTTP-based requests.

These methods are:
  • doGet for handling HTTP GET requests. This Requests a page from the server. This is the normal request used when browsing web pages.
  • doPost for handling HTTP POST requests. This request is used to pass information to the server. Its most common use is with HTML forms.
  • doPut for handling HTTP PUT requests. Used to put a new web page on a server.
  • doDelete for handling HTTP DELETE requests. Used to delete a web page from the server.
  • doHead for handling HTTP HEAD requests.
  • doOptions for handling HTTP OPTIONS requests. Intended for use with the web server, listing the supported options.
  • doTrace for handling HTTP TRACE requests. Used to trace servers
Different request handling methods in Java Servlet, Java servlet tutorial, java web action, javawebaction, java web development, java ee tutorials, web applications development, j2ee servlet, j2ee tutorial

Typically when developing HTTP-based servlets, a Servlet Developer will only concern himself with the doGet and doPost methods. The other methods are considered to be methods for use by programmers very familiar with HTTP programming.

 Related Topics:

What is Java Servlet
What is Java Servlet Life Cycle and how to explain it
What is Servlet Class Hierarchy


  1. Above the topic are explained what is Handling method and how its working on Java. I get it clear idea about your topic.Its save my time and effort.web hosting

    1. How to make seo friendly url in JSP,How to make seo friendly url in JSP,make seo friendly url in JSP,seo friendly url in JSP,friendly url in JSP,url in JSP,url rewriting in jsp,htaccess in jsp,url redirect in jsp,url beautifier in jsp
      Just check this tutorial Click Here !!

  2. WOW just what I was searching for. Came here by searching for places to visit in la

    Feel free to visit my webpage; places to visit in california

  3. Thanks for your informative post on Java application development. This open source platform assists software developers to create stunning mobile application with ease. Further, they can make use of this platform at free of cost. J2EE Training in Chennai | JAVA Training in Chennai

  4. Well it was very good to see your article... Thanks a lot for providing Information Regarding Java..
    Website Designing Company | Website Development Company Bangalore

  5. There is a lot of competition in outsourcing software development, as there are many firms across the globe catering to clients looking for outsourcing their work. What is good is that the takers can choose the best from the lot.

    Cado Magenge
    iPad App Development Company
    Web Design and Development Company
    App Development Company

  6. Great blog. All posts have something to learn. Your work is very good and i appreciate you and hoping for some more informative posts.keep writing
    Web development Company in India Company | Web development Company Bangalore
    Web Development Company in Bangalore | Responsive Web development

  7. Thanks for sharing your informative post on Java application development.There is a lot of competition in outsourcing software development,This open source platform assists software developers to create stunning mobile application with ease.
    sap training course in gurgaon

  8. What a fantastic and informative blog! i enjoyed reading this, and I must say your blog is great! Keep up the excellent work. You have a magical talent of holding readers mind.
    best web designer company in india
    best seo service company in india
    Ecommerce Companies in Bangalore
    Web Development Company in Bangalore

  9. Thanks for Sharing this Valuable Information about Java
    Java Training in Noida

  10. Thanks a lot very much for the high quality and results-oriented help. I won’t think twice to endorse your blog post to anybody who wants and needs support about this area.
    Best Java Training Institute Chennai


Please enter relevant question and information.