作者对于开始dedicated的解释
2008-09-23
This book is dedicated to whoever decided that the EL imobject for a context param should be named initParam...
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=18&t=004242
That's absolutely right -- if you see "init-parameters" and it does not explicitly state servlet or context, then you are to assume it means servlet init parameters.
Just be prepared that sometimes you might see the phrase "context parameters" and "context init parameters", but they both mean the same thing. And you might see "init parameters" and "servlet init parameters" and THEY both mean the same thing.
It IS very confusing; this use of the phrase "init parameters".
Did you notice who we dedicated the book to? It's to "Whoever decided that the EL implicit object for context parameters should be named initParam." Given that when you look in the DD, init param is used for SERVLET init parameters, not CONTEXT parameters.
The reason we made that dedication is because that is a perfect example of something being named in the most confusing way, and we figured that if the API had been designed perfectly and intuitively, you wouldn't have as much need for a book
cheers,
Kathy