• Post Reply Bookmark Topic Watch Topic
  • New Topic

doHead

 
Dinesh Kumar
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I have the following code in a servlet Login.java:

...And I have the following html file to invoke this servlet:

When I run this file..it shows error 405 ...Resource not allowed in the browser. If I replace the method "HEAD" with "GET" in the html and doHead with doGet in the servlet, then it runs ok and the servlet passes on the control to the doPost method successfully.
Why is the servlet not able to process the request in the doHead method?
Thanks in advance.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!