Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HF - S &JSP

 
Henrik Krievs
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.....)

Rgds, Henrik
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Henrik,

I'm not sure to understand your question. What's stated on page 161 is that "if you see "init parameters" without knowing if it means servlet or context init parameter, assume servlet."

I don't see any contradiction with previous pages.

Regards,

Phil.
 
Henrik Krievs
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

As the co-authors of the book also are co-authors of the real exam, I'd be really confident in all warnings they can write about the real exam...

Regards,

Phil.
 
Kathy Sierra
Cowgirl and Author
Rancher
Posts: 1589
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)


Yes

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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic