This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes !? doHead() !? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Servlets
Bookmark "!? doHead() !?" Watch "!? doHead() !?" New topic

!? doHead() !?

Tony Alicea

Joined: Jan 30, 2000
Posts: 3222
In the O'Reilly book on Servlets, on page 19, first paragraph, there is a reference to the HttpServlet method doHead().
This method does not exist right? If so, where?
If i'm right, then I'm somewhat disappointed by the error since the printing that I have is from Jan 2000 and the book was first published in Oct 1998.
At any rate, there are two methods that I found in the HttpServletResponse interface that seem to set header fields any way I want. Is that correct?

Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
I agree. Here's the link:
subject: !? doHead() !?
It's not a secret anymore!