Win a copy of Spring Boot in Practice this week in the Spring 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

EL expression object doubt

 
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67651
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please Quote Your Sources. Thanks!
 
Garlapati Ravi
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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


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