• Post Reply Bookmark Topic Watch Topic
  • New Topic

Head First book - 99.9999% of all servlets are HttpServlets  RSS feed

 
Ls chin
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

This is a very newbie question.

In Head First's JSP and Servlet book (2nd edition on pg.44), it says, "99.9999% of all servlets are HttpServlets". I'm wondering, what is the other 0.0001%?

Is it a subtle joke which I didn't get, or is the 99.9999% actually true?

Thank you in advance.
 
Ls chin
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is also a very small errata in the code example on pg. 44.


This line doesn't compile because there is a " before the word text.
"<h1 style="text-align:center>"


This line compiles Ok.
"<h1 style=text-align:center>"


Is it correct?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In other words, "don't worry about it".

Posting errata here is not useful. Please report it to the authors.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by LS chin:

Is it a subtle joke which I didn't get, or is the 99.9999% actually true?


The servlet API was originally designed to be generic and independent of HTTP, so that it might be used in other contexts as well. Nevertheless, it turns out that nobody used it for anything else.
 
Ls chin
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bear,

Originally posted by Bear Bibeault:
In other words, "don't worry about it".


Thank you for your reply.
I can now progress to read the rest of the chapters without thinking of that 0.0001%!
 
Ls chin
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ernest,

Originally posted by Ernest Friedman-Hill:
The servlet API was originally designed to be generic and independent of HTTP, so that it might be used in other contexts as well. Nevertheless, it turns out that nobody used it for anything else.


Oh, I see...

Thank you for the explanations!
 
Bert Bates
author
Sheriff
Posts: 8945
17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'd like to clarify what Bear said about errata. Personally, we prefer it if you'd start a new thread with a title like:

"Possible error in chapter X of HFSJ..."

Sometimes ranchers find real errors and sometimes the discussion reveals a wrong concept on the reader's part so we like it if you start out by saying "doubt" or possible error".

Thanks,

Bert
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!