• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

diff b/w doGet() and service()

 
ramchander yshetti
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai,
may i know the diff b/w doGet(..) and service(..)
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
subbarao N.V
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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().
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic