File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Jsp implicit objects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Jsp implicit objects" Watch "Jsp implicit objects" New topic

Jsp implicit objects

Gurukant Desai
Ranch Hand

Joined: Apr 07, 2008
Posts: 56
which implicit object is NOT available to the jsp page?
<%page isErrorPage='false' session='false' isThreadSafe='false' %>
1) page
2) pageContext
3) session
4) exception
I have confusion between opinion 3 and opinion 4. Please guide.
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32823

I thought they both were. What exam/mock is this question from?

Also note that it is bad practice to reference any of those implicit objects directly. Using expression language, you reference objects in the session not the session per se.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Gurukant Desai
Ranch Hand

Joined: Apr 07, 2008
Posts: 56
Thanks Jeanne for your guidance.

This question is from my company's exam.
I agree. Here's the link:
subject: Jsp implicit objects
jQuery in Action, 3rd edition