This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

EL expression object doubt

 
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Marshal
Posts: 67424
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Checking the JSP or EL spec would answer your confusion. Does it list sessionScope as a valid implicit scoped variable?
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please Quote Your Sources. Thanks!
 
Garlapati Ravi
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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


Because the mock's answer is wrong ?
    Bookmark Topic Watch Topic
  • New Topic