Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question from scriptless jsp chapter hfsj

 
Sudarshan Sreenivasan
Ranch Hand
Posts: 188
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Does anyone know the answer for Question 17 of the scriptless jsp chapter

According to me the question is wrongly framed & thus none of the options fit.

Can anyone come up with the correct answer for the question

It is included in the errata ..... So the answer marked is not the correct one

Thanks
 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which book?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which book?

Answer in the name of the thread
 
Sudarshan Sreenivasan
Ranch Hand
Posts: 188
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Head first servlets and jsp (HFSJ)
 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nicely played, Christophe :-)
 
Sudarshan Sreenivasan
Ranch Hand
Posts: 188
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got d joke but not the answer !! Now that we have had a laugh ... the answer would'nt hurt i guess !!
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry sid. Could you please post the question ? That would give people who don't own the book (like me) a chance to help you.
 
Dave Seligson
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Q17 on page 424 has an errata that says answer C should not be checked.
Answers A is correct and should be checked.

The question is:
Which about EL access operators are true? (Choose all that apply)
A. Anywhere the .(dot) operator is used the [] could be used instead.
B. Anywhere the [] operator is used the .(dot) could be used instead.
C. If the .(dot) operator is used to access a bean property but the property doesn't exist, then a runtime exception is thrown.
D. There are some situations where the .(dot) operator must be used and other situations where the [] operator must be used.

Answer A is the only correct answer.

In my copy, A is correctly checked and there are descriptions why B and D are incorrect. However, there is no description why C is incorrect.
I believe the description should be that Expression Language is very forgiving and doesn't throw exceptions in this case.

Dave Seligson
SCJP, SCWCD test pending on this Friday.....
 
Sudarshan Sreenivasan
Ranch Hand
Posts: 188
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Please dont be sorry chris ... i know that everything said here is in good humour & taste ... i was just being sarcastic !!

Thanks for the answer !!! .... & i guess EL is very forgiving !!! .... hopefully it remains like that in the exam as well !!
[ September 14, 2007: Message edited by: sid sree ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic