Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic