File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Implicit variables and Implicit Objects 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 "Implicit variables and Implicit Objects" Watch "Implicit variables and Implicit Objects" New topic

Implicit variables and Implicit Objects

Padma priya Gururajan
Ranch Hand

Joined: Oct 05, 2006
Posts: 430
In jsp, what are the implicit variables and implicit objects?
With regards,
Padma priya N.G.

Padma priya N.G.
Be the change you want to be - Mahatma Gandhi
Padma priya Gururajan
Ranch Hand

Joined: Oct 05, 2006
Posts: 430
Do Implicit objects and variables mean the same?
With regards,
Padma priya N.G.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 39548
They're discussed in the JSP 2.0 spec in sections 1.8.3 and 2.2.3.

Ping & DNS - updated with new look and Ping home screen widget
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

Thanks for the info. Ulf.

Both both the sections have the common title "Implicit Objects"

One main difference is:

  • Implicit Objects :

  • These are available implicitly (without any need to prior declaration) in the scriptlets and scriptlet expressions. There are total 9 objects (request, response, pageContext, session, application, out, config, page, exception).

    These Object names with prefixes jsp, _jsp, jspx and _jspx, in any combination of upper and lower case, are reserved by the JSP specification.

  • Implicit Variables :

  • These are available implicit in EL Expressions. They are pageContext, pageScope, requestScope, sessionScope, applicationScope, param, paramValues, header, headerValues, cookie, initParam


    Thanks for the post Padmapriya.

    Everything has got its own deadline including one's EGO!
    [CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
    I agree. Here's the link:
    subject: Implicit variables and Implicit Objects
    Similar Threads
    Question on EL
    Did implicit objects are instance variables or local variables in _jspService
    Implicit Objects
    implicit jsp objects
    requestScope VS request object