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

HFS p825 Q49

 
Roger Yates
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If a servlet can access something via ServletContext methods, then surely it can access that same thing using ServletConfig methods (one of which is getServletContext, and therefore gives access to all that ServletContext has access to). So I think D is correct too, via the getServletContext method.
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with you.

Nick
 
Kathy Sierra
Cowgirl and Author
Rancher
Posts: 1589
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, I'll give you that one

It should have been more clear to specify *directly* through methods in that API, or something that defined it more specifically. So we *meant* something like "directly through a method call in the ServletConfig API", but even that leaves a little room for interpretation...


Hmmm... I'll have to think of a better way to rephrase that one.

Boy, I'm going to be busy fixing stuff thanks to you guys!!

cheers,
Kathy
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, will you try to release those *updates*, say on the website, even these issues are not regarded as errata?

Thanks Kathy.

Nick
 
Roger Yates
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just trying to help for the 2nd edition

Do you want me to I submit this as errata under "reader comments/queries"?
[ October 21, 2004: Message edited by: Roger Yates ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic