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?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| 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/> |
![]() |
| Thread Tools | |
| Display Modes | |
| |
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 |