This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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

Win a copy of Building Microservices this week in the Design forum!
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: 437
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: 437
Do Implicit objects and variables mean the same?
With regards,
Padma priya N.G.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42958
They're discussed in the JSP 2.0 spec in sections 1.8.3 and 2.2.3.
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3381

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
    It's not a secret anymore!