Hi!
The doPut(),doPost(),doGet(),doDelete() and doTrace() methods are present to enable custom handling in the way in which a form or a request may be posted to the Webserver (
servlet Engine )
As we know we have always used the doPost and doGet methods in the servlets.. or the service() sometime..
It is nessasary that.. when a form is being submitted.. say thru' form method="post"
the doGet() method is not invoked.. since it has no business to be invoked.. but doPOst() is..
A http Get request is the first request to a IP for which the default page is displayed. most times there is no form/information being submitted for this request.
On a info submission we will use form method=post
and the handler on the servlet for the same is the doPost()
Sometimes it is easy to upload text/binary files to the server using the form method=put.. and yeah you guessed it right.. the handler wud be doPut()..
and so on..
if you look up the HTTP protocols you will get a better insight,
I hope this helps.,
Lupo