• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

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: 67665
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: 9046
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
 
I got this tall by not having enough crisco in my diet as a kid. This ad looks like it had plenty of shortening:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic