File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "diff  b/w  doGet() and service() " Watch "diff  b/w  doGet() and service() " New topic
Author

diff b/w doGet() and service()

ramchander yshetti
Ranch Hand

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

Joined: Nov 24, 2005
Posts: 14687
    
  16

1. Please do not post the same question here and there. It makes redundant discussion and wastes the time of those helping you
http://www.coderanch.com/t/363137/Servlets/java/diff-doGet-servlet

2. Please do not use abbreviations in your messages


[My Blog]
All roads lead to JavaRanch
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

See section 2.6 in this PDF chapter of "Core Servlets and Java Server Pages".
http://pdf.coreservlets.com/CSAJSP-Chapter2.pdf


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

Joined: Aug 21, 2006
Posts: 13
hi

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: http://aspose.com/file-tools
 
subject: diff b/w doGet() and service()