aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes EL expression object doubt 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 "EL expression object doubt" Watch "EL expression object doubt" New topic
Author

EL expression object doubt

Garlapati Ravi
Ranch Hand

Joined: Mar 05, 2008
Posts: 171
I found the below question is one of the mocks :

Q) Which of the following is not a valid EL expression object?
a. sessionScope
b. requestScope
c. pageContext
d. header
e. cookie

Answer)a.
Explanation)Option a is correct as they is no such expression called 'sessionScope' in EL.

does the question mean EL implicit objects or anything else?
If it means EL implicit object, could any one explain why sessionScope is not a valid EL expression object ? Is question and answer itself wrong, or my understanding is wrong ? Requesting for clarify.


Ravi Kumar
SCWCD 5 - 89%, SCJP 1.4 - 90%
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61241
    
  66

Checking the JSP or EL spec would answer your confusion. Does it list sessionScope as a valid implicit scoped variable?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

Please Quote Your Sources. Thanks!


A good workman is known by his tools.
Garlapati Ravi
Ranch Hand

Joined: Mar 05, 2008
Posts: 171
I got that question from javabeat mock exams.

Still i am in confusion. there are 11 EL Implicit Objects, one of them is sessionScope, (HFSJ Page No : 367)

in that case why sessionScope is not a valid EL expression object ?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

in that case why sessionScope is not a valid EL expression object ?

Because the mock's answer is wrong ?


[My Blog]
All roads lead to JavaRanch
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: EL expression object doubt