Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Implicit variables and Implicit Objects  RSS feed

 
Padma priya Gururajan
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In jsp, what are the implicit variables and implicit objects?
With regards,
Padma priya N.G.
 
Padma priya Gururajan
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Do Implicit objects and variables mean the same?
With regards,
Padma priya N.G.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They're discussed in the JSP 2.0 spec in sections 1.8.3 and 2.2.3.
 
Raghavan Muthu
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


    HtH.

    Thanks for the post Padmapriya.
     
    It is sorta covered in the JavaRanch Style Guide.
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!