aspose file tools*
The moose likes Servlets and the fly likes doPut & doDelete Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "doPut & doDelete" Watch "doPut & doDelete" New topic
Author

doPut & doDelete

Dean Jones
Greenhorn

Joined: Jun 18, 2002
Posts: 24
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

Joined: Dec 01, 2000
Posts: 583
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


"In the country of the blind, the one eyed man is the King"
Gautham Kasinath CV at : http://www.geocities.com/gkasinath
Dean Jones
Greenhorn

Joined: Jun 18, 2002
Posts: 24
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

Joined: Jun 24, 2002
Posts: 30
hi
Syed Zackriya Hussainy
Ranch Hand

Joined: Jun 24, 2002
Posts: 30
hi
gautham kasinath
Ranch Hand

Joined: Dec 01, 2000
Posts: 583
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

Joined: Jun 18, 2002
Posts: 24
thanx gautham u really helped me
gautham kasinath
Ranch Hand

Joined: Dec 01, 2000
Posts: 583
no worries!! Anytime mate!!
Lupo
and thats Lupo.. not Gautham.. Lupo is my call sign on the net.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: doPut & doDelete