Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference between doget() and httpget()

 
Durga Prasad Vuyyuru
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,

Can any one explain me the difference between the doGet() and httpGet().

Thanks in advance.
 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not think that httpGet() exists in a Sevlet by default
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An Http get method will be translated by the service method of the servlet to calling the doGet() method by default.

I hope this explains.
 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no such method as httpGet() unless you write it yourself. Now if you make a connection to the servlet engine and in the header (which will be done automatically for you by a browser) indicate that the method is Get, then the doGet() method of the servlet will be excuted.
 
Durga Prasad Vuyyuru
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,

I think doGet() is used in servlet service()

but where does the HTTP GET method will be used.i had seen this in HFSJ,page no-116.please,tell the differences between them.

Thanks in advance.
 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
read page 110 and 117. the HTTP GET they refer to is in the HTTP transmission of the message.
[ August 30, 2007: Message edited by: Michael Ku ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic