aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes question from scriptless jsp chapter hfsj Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "question from scriptless jsp chapter hfsj" Watch "question from scriptless jsp chapter hfsj" New topic
Author

question from scriptless jsp chapter hfsj

Sudarshan Sreenivasan
Ranch Hand

Joined: Jun 28, 2007
Posts: 188

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

Joined: Apr 20, 2002
Posts: 510
Which book?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Which book?

Answer in the name of the thread


[My Blog]
All roads lead to JavaRanch
Sudarshan Sreenivasan
Ranch Hand

Joined: Jun 28, 2007
Posts: 188

Head first servlets and jsp (HFSJ)
Michael Ku
Ranch Hand

Joined: Apr 20, 2002
Posts: 510
Nicely played, Christophe :-)
Sudarshan Sreenivasan
Ranch Hand

Joined: Jun 28, 2007
Posts: 188

Got d joke but not the answer !! Now that we have had a laugh ... the answer would'nt hurt i guess !!
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

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

Joined: Jul 12, 2007
Posts: 17
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

Joined: Jun 28, 2007
Posts: 188

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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: question from scriptless jsp chapter hfsj