• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

doPut & doDelete

 
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
 
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
 
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.
 
Today's lesson is that you can't wear a jetpack AND a cape. I should have read this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic