File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Servlets - doPut and doDelete Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlets - doPut and doDelete" Watch "Servlets - doPut and doDelete" New topic

Servlets - doPut and doDelete

Kagalkar Praveen

Joined: Oct 31, 2000
Posts: 11
Hai all
I am intrested to know the signifance with help of code for the methods doPut(...) and doDelete(...). Actually when to use and how to use.
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
Those two are hardly used at all (I've never seen them yet) and I do not think all webservers support them.
doPut seems to be meant for things like uploading files, doDelete for deleting content from the server.
for doDelete, you can probably better do a POST of the request to delete something, and for doPut a POST requesting to store the included data.
Just my 2 eurocents

Frank Carver

Joined: Jan 07, 1999
Posts: 6920
I believe the PUT and DELETE operations are also part of WEBDAV, which is becoming more popular as a server-administration method.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Kagalkar Praveen

Joined: Oct 31, 2000
Posts: 11
Thanks for your reply but i know that these are least used methods. I would like to know how to use them. If possible any give me a link to the sample code using them.
Thanks to all.
I agree. Here's the link:
subject: Servlets - doPut and doDelete
It's not a secret anymore!