• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doPut and doHead example...

 
padhu Vinirs
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using Tomcat...
I have overridden all of the doXXX methods in a sample servlet. I am printing the method name to the response. I get back the "doGet" message even when I send the method attribute as "PUT" or "HEAD" in the html form call.
Any examples of how to use doPut and doHead ? Havent seen any examples in any book...

Thanks
-- padhu
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I imagine your first problem is because the browser "knows" that forms have to be either get or post and substitutes GET. You will have to write your own HttpURLConnection to use PUT or HEAD.
Right off hand I don't recall seeing any examples either.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic