File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes diff  b/w  doGet() and service() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "diff  b/w  doGet() and service() " Watch "diff  b/w  doGet() and service() " New topic

diff b/w doGet() and service()

ramchander yshetti
Ranch Hand

Joined: Apr 22, 2006
Posts: 97
may i know the diff b/w doGet(..) and service(..)
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

1. Please do not post the same question here and there. It makes redundant discussion and wastes the time of those helping you

2. Please do not use abbreviations in your messages

[My Blog]
All roads lead to JavaRanch
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

See section 2.6 in this PDF chapter of "Core Servlets and Java Server Pages".

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
subbarao N.V

Joined: Aug 21, 2006
Posts: 13

Both the methods for handling the requests.If you provide doGet() mehtod as part of your servlet application.First the container checks for the service() method if it not there,service method calls the doxxx() methods.All these methods will be called based on request type.If the request type is get it calls doGet().
I agree. Here's the link:
subject: diff b/w doGet() and service()
jQuery in Action, 3rd edition