top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

What are JSP EL implicit objects and how it’s different from JSP implicit Objects?

0 votes
24 views
What are JSP EL implicit objects and how it’s different from JSP implicit Objects?
posted Sep 16, 2017 by anonymous

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

0 votes

JSP Expression Language provides many implicit objects that we can use to get attributes from different scopes and parameter values.
Below table provides list of implicit object in JSP EL.

JSP EL IMPLICIT OBJECTS        TYPE            DESCRIPTION
pageScope                      Map             A map that contains the attributes set with page scope.
requestScope                   Map             Used to get the attribute value with request scope.
sessionScope                   Map             Used to get the attribute value with session scope.
applicationScope               Map             Used to get the attributes value from application scope.
param                          Map             Used to get the request parameter value, returns a single value
paramValues                    Map             Used to get the request param values in an array, useful when request parameter contain multiple values.
header                         Map             Used to get request header information.
headerValues                   Map             Used to get header values in an array.
cookie                         Map             Used to get the cookie value in the JSP
initParam                      Map             Used to get the context init params, we can’t use it for servlet init params
pageContext                    pageContext     Same as JSP implicit pageContext object, used to get the request, session references etc. example usage is getting request HTTP Method name.
answer Sep 18, 2017 by Piyush Jain
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...