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.
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!!
Joined: Nov 07, 2003
So, will you try to release those *updates*, say on the website, even these issues are not regarded as errata?
Joined: Aug 31, 2004
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 ]