wood burning stoves 2.0*
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
Author

Servlets - doPut and doDelete

Kagalkar Praveen
Greenhorn

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.
Praveen
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


42
Frank Carver
Sheriff

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 frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Kagalkar Praveen
Greenhorn

Joined: Oct 31, 2000
Posts: 11
Hai
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: http://aspose.com/file-tools
 
subject: Servlets - doPut and doDelete