Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doPut & doDelete

 
Dean Jones
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi the service method overrides to give us the methods such as doGet,doPost,doDelete,doPut,doTrace etc.
i know the function of the doGet and doPOst,can any one of u let me know the functions of the other fucntions(doPut,,,) i know that this is quite easy ,
Dean Jones
 
gautham kasinath
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Dean Jones
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it is now clear to me a bit hoe to use doPut etc,
can u please help me by sending a explanation of doPu,doDelete,doTrace with the examples
please
 
Syed Zackriya Hussainy
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
 
Syed Zackriya Hussainy
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
 
gautham kasinath
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! Dean..
Well I havent used these methods so I cant really help you directly..
But I did come across this a CGI equi..
http://www.apacheweek.com/features/put
now you can go thru this post too..
http://www.oreillynet.com/cs/user/view/cs_msg/190
I hope it helps..
Lupo
 
Dean Jones
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanx gautham u really helped me
 
gautham kasinath
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no worries!! Anytime mate!!
Lupo
and thats Lupo.. not Gautham.. Lupo is my call sign on the net.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic