Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[HFSJ 2nd Edition] chapter 5 Errata

 
Vikas Kapoor
Ranch Hand
Posts: 1374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Page # 207


There are two problems with above code.
1) The request is forwarded after committing the response. This will result into IlligalStateException. In the book it is mentioned.
2) The other is with the line marked Erroneous. Here getResourceAsStream() method accepts string parameter. But the URL path should start with '/' i.e. it will search in and from root.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic