JSTL pageContext
From AgileApps Support Wiki
Revision as of 00:34, 20 October 2011 by imported>Aeric (Created page with "Use the following properties in an JSTL expression. For example: <tt>${pageContext.request.serverName}</tt>. :* pageContext :** .request :*** .characterEncoding - Encoding of th…")
Use the following properties in an JSTL expression. For example: ${pageContext.request.serverName}.
- pageContext
- .request
- .characterEncoding - Encoding of the request
- .contentType - MIME type of the request
- .locale - User's locale
- .locales - User's list of locales
- .new - True if the server created a session, but the client hasn't joined it
- .protocol - Request protocol. E.g. HTTP/1.1
- .remoteAddr - Client's IP address
- .remoteHost - Fully qualified host name of the client, or the IP address if the name name isn't defined
- .scheme - scheme used for the current request: HTTP, HTTPS, etc.
- .serverName - Name of the host that received the request
- .serverPort - Port number the request came in on
- .secure - True for an HTTPS (secure channel) request
- .response
- .bufferSize - Buffer size of the response
- .characterEncoding - Encoding used for the response
- .locale - Locale used for the response
- .committed - True if request data was committed
- servletContext
- .majorVersion - Major version of the Servlet API the container supports
- .minorVersion - Minor version of the Servlet API the container supports
- .serverInfo - Name and version of the servlet container
- .servletContextName - Name of the Web app, as specified by the display-name attribute in the deployment descriptor
- session
- .creationTime - Start of session in milliseconds since January 1, 1970, GMT
- .id - A unique session identifier
- .lastAccessedTime - Last session access time in milliseconds since January 1, 1970, GMT)
- .maxInactiveInterval - Amount of time that can lapse with no activity before the session times out
- .request
- pageContext