Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes doHead processing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "doHead processing" Watch "doHead processing" New topic
Author

doHead processing

Parth Twari
Ranch Hand

Joined: Jan 20, 2010
Posts: 163
doGet() will process HEAD requests in the absence of a doHead() method?

true/false?

Source: SAI

Answer given : true


Parth Tiwari
| Pursuing Bachelor of Engineering | OSUM Club Leader | SCJP 6 | SCWCD 5 |...
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

It is true. normally you do not need to override doHead method to handle HEAD request. system calls doGet in the absence of doHead.thats all I know
Parth Twari
Ranch Hand

Joined: Jan 20, 2010
Posts: 163
Ok thanks..

I tested it and got the same answer as you said
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: doHead processing