Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes doHead Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "doHead " Watch "doHead " New topic
Author

doHead

Dinesh Kumar
Ranch Hand

Joined: Jul 03, 2002
Posts: 54
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: doHead
 
It's not a secret anymore!