According to page 161, "init-parameters" are alwas assumed to be servlet-init-parameteres. But earlier pages says, that "init-parameters" could be BOTH servlet and context parameters - which is true (when having the test in mind.....)
Originally posted by Henrik Krievs: OK - Let me put it more clearly; In the test - if I see the phrase "init-parameters" - should I ALWAYS think of this a servlet-init-parameters - unless - of course - otherwise stated ?
Rgds, Henrik (DK)
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