Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Clarrifications on doPut, doDelete

 
Thennam Pandian
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In HttpServlet class we have some method doPut, doDelete, doHead, doOptions and doTrace.

1. what is need to introduce these method?

2. give me a practical situation, in which we can use these methods..

thanks,
Thennam
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The 'do' methods match the request types from the HTTP spec.

If all you're doing is developing for browsers, you'll probably never need anything other than doGet and doPost. If, on the other hand, you're developing your own client these methods are there if you need them. The WEBDAV protocol, for instance, uses doPut for moving files to the server.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!