IT Community - Software Programming, Web Development and Technical Support

What are the implicit EL objects in JSP?

This is a discussion on What are the implicit EL objects in JSP? within the Java Server Pages (JSP) forums, part of the Web Development category; What are the implicit EL objects in JSP?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > Java Server Pages (JSP)

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-26-2007, 04:24 AM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Question What are the implicit EL objects in JSP?

What are the implicit EL objects in JSP?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-26-2007, 04:39 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: What are the implicit EL objects in JSP?

Following are the implicit EL objects:-
PageContext: The context for the JSP page.
Provides access to various objects for instance:-
servletContext: The context for the JSP page's servlet and any web components contained in the same application.
session: The session object for the client.
request: The request triggering the execution of the JSP page.
response: The response returned by the JSP page. See Constructing Responses.In addition, several implicit objects are available that allow easy access to the followingobjects:
param: Maps a request parameter name to a single value
paramValues: Maps a request parameter name to an array of values
header: Maps a request header name to a single value
headerValues: Maps a request header name to an array of values
cookie: Maps a cookie name to a single cookie
initParam: Maps a context initialization parameter name to a single value Finally, there are objects that allow access to the various scoped variables described inUsing Scope Objects.
pageScope: Maps page-scoped variable names to their values
requestScope: Maps request-scoped variable names to their values
sessionScope: Maps session-scoped variable names to their values
applicationScope: Maps application-scoped variable names to their values
For instance the below snippet will indentify the browser used by the client.<b>Browser:</b> ${header["user-agent"]}<br/>
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Explain the difference between an explicit and an implicit lock. ragavraj Database Support 0 10-29-2007 01:14 PM
virtual objects simplesabita Testing Tools 2 08-28-2007 06:40 AM
custom objects simplesabita Testing Tools 1 08-28-2007 06:31 AM
How many objects are there? vadivelanvaidyanathan Java Programming 3 07-16-2007 10:49 PM
the new Net Objects 10 aquariancore Web Design Help 1 04-20-2007 08:46 PM


All times are GMT -7. The time now is 10:47 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0