wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "doHead " Watch "doHead " New topic


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.
jQuery in Action, 2nd edition
subject: doHead
Similar Threads
Progress bar on IE6
Delegating to doGet()
Strange problem - request forwarding
File not found error
Requested Dispatcher