我没有用过:doPut
protected void doPut(HttpServletRequest req,
                     HttpServletResponse resp)
              throws ServletException,
                     java.io.IOException
Receives an HTTP PUT request from the protected service method and handles the request. The PUT operation allows a client to place a file on the server and is similar to sending a file by FTP. 
If you override this method, your method must leave intact any content headers sent with the request (including Content-Length, Content-Type, Content-Transfer-Encoding, Content-Encoding, Content-Base, Content-Language, Content-Location, Content-MD5, and Content-Range). If your method cannot handle a content header, it must issue an error message (HTTP 501 - Not Implemented) and discard the request. For more information on HTTP 1.1, see RFC 2068 . This method does not need to be either safe or idempotent. Operations that doPut performs can have side effects for which the user can be held accountable. If you override this method, you may want to save a copy of the affected URL in temporary storage. If the HTTP PUT request is incorrectly formatted, doPut returns an HTTP BAD_REQUEST message.Parameters:
req - the HttpServletRequest object that contains the request the client made of the servlet
resp - the HttpServletResponse object that contains the response the servlet returns to the client
Throws:
java.io.IOException - if an input or output error occurs while the servlet is handling the PUT request
ServletException - if the request for the PUT cannot be handled--------------------------------------------------------------------------------
doDelete
protected void doDelete(HttpServletRequest req,
                        HttpServletResponse resp)
                 throws ServletException,
                        java.io.IOException
Receives an HTTP DELETE request from the protected service method and handles the request. The DELETE operation allows a client to remove a document or Web page from the server. 
This method does not need to be either safe or idempotent. Operations requested through DELETE can have side effects for which users can be held accountable. If you override this method, you may want to save a copy of the affected page in temporary storage. If the HTTP DELETE request is incorrectly formatted, doDelete returns an HTTP BAD_REQUEST message.Parameters:
req - the HttpServletRequest object that contains the request the client made of the servlet
resp - the HttpServletResponse object that contains the response the servlet returns to the client
Throws:
java.io.IOException - if an input or output error occurs while the servlet is handling the DELETE request
ServletException - if the request for the DELETE cannot be handled--------------------------------------------------------------------------------