• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Head First book - 99.9999% of all servlets are HttpServlets

 
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 67735
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author and iconoclast
Posts: 24204
44
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
author
Posts: 9050
21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
pie. tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic