• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Errors in Manning's SCWCD book, 2nd, sept 02 ed.

 
Sudd Ghosh
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi -
Am I seeing some more errors in the Hanumant's book or am I missing something ??
1. Section 4.4.2, pg 43 : Last para, inside doGet method.
PrintWriter pw = res.getPrintWriter();
I believe there is no such method as getPrintWriter(). Won't it be getWriter() ?
2. Section 4.8.3, pg 58 : In the example LoginServlet.java, doGet, doPost do not throw the required exceptions (and also no try/catch block)
3. Section 7.1.1, pg 97 : Listing 7.2. The signature of the debit method has the formal parameter "String accountid" (lowercase i in id), whereas the one used is accountId.
These are not mentioned in the available errata list.
Thanks, Sudd
 
Paulo Salgado
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. It seems all of them are wrong indeed. After looking at the errata and finding some other bugs myself, I decided to go through the book's discussion group. If you do the same, you'll see many new errors there, which are not even in the errata.
I'm enjoying the book, and I certainly do not underestimate the effort (and ability) to write one, but I was expecting a little more quality for a book written for a certification exam. The errors pointed by you, for instance, would be clearly spotted during compilation.
By the way, I suggest you post these one there, as they seem to be new. You will probably get an acknowledgement from the author, who has been incredibly responsive.
 
Sudd Ghosh
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paulo -
Thanks for your suggestion. I've started following it up with the "author online" page in the manning site.
I fully agree with you regarding the book's quality wrt such errors which could have been eliminated by just trying to compile/run these programs. It may be just me, but I don't see a lot of codes in this book which can be tried out easily. Also the codes that are present would have been more useful with a screen snapshot of the input-form and result page (like in Marty Hall's book).

Thanks, Sudd
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic