InfoCenter Home >
4: Developing applications >
4.2: Building Web applications >
4.2.2: Developing JSP files >
4.2.2.3: Overview of JSP file content >
4.2.2.3.6: Supported NCSA tag reference

4.2.2.3.6: Supported NCSA tag reference

The product supports the following NCSA tags through their use in JSP files:

  • config
  • echo var=variable (see below)
  • exec
  • filesize
  • include
  • lastmodified
  • Commands for formatting size and date outputs

For the echo command, the product supports the standard server-side include (SSI) environment variables and Common Gateway Interface (CGI) environment variables.

The SSI environment variables

Variable Description
DATE_GMT The current date and local time zone in Greenwich mean time (GMT)
DATE_LOCAL The current date and local time zone
DOCUMENT_NAME The current filename
DOCUMENT_URI The path to the document (such as, /docs/tutorials/index.shtml)
QUERY_STRING_UNESCAPED The unescaped version of any search query the client sent, with all shell special characters escaped with the \ character
LAST_MODIFIED The last date the current document was changed

CGI environment variables

Variable Description
AUTH_TYPE The protocol-specific authentication method used to validate the user, if the server supports user authentication and the script is protected
CONTENT_LENGTH The length of the content, as specified by the remote host
CONTENT_TYPE The data content type for queries that have information attached (such as HTTP POST and PUT)
GATEWAY_INTERFACE The revision level of the CGI specification to which the server complies
PATH_INFO The extra path information given by the client in this request. The extra information follows the virtual pathname of the CGI script.
PATH_TRANSLATED The server provides a translated version of PATH_INFO, which takes the path and performs any virtual-to-physical mapping.
QUERY_STRING The information that follows the ? symbol in the URL request for a script
REMOTE_HOST The hostname of the remote host sending the request. If the server does not have this information, the server should set REMOTE_ADDR and leave REMOTE_HOST unset.
REMOTE_ADDR The IP address of the remote host sending the request
REMOTE_IDENT If the HTTP server supports RFC 931 identification, the remote username retrieved from the server
REMOTE_USER The username used for authentication, if the server supports user authentication and the script is protected
REQUEST_METHOD The method with which this request was made. Methods include HTTP, GET, HEAD, POST, and so on
SCRIPT_NAME The virtual path to the script being run. This variable is used for self-referencing URLs
SERVER_NAME The IP address, hostname, or Domain Name Server (DNS) alias of the server
SERVER_PORT The port number to which the request was sent
SERVER_PROTOCOL The name and revision level of the protocol used to format this request
SERVER_SOFTWARE The name and version of the server answering the request

Go to previous article: JSP .91 syntax: BEAN tags Go to next article: IBM extensions to JSP syntax

 

 
Go to previous article: JSP .91 syntax: BEAN tags Go to next article: IBM extensions to JSP syntax