Environment Variables in Server-side HTML Commands

                                                                                                                                                                                                                                                                                                                                      Back to [Book]     [Topic]

Environment Variables in Server-side HTML Commands

In addition to the standard set of environment variables used in CGI, you can include the following variables in your parsed commands:

  • DOCUMENT_NAME — File name of the parsed file
  • DOCUMENT_URI — Virtual path to the parsed file, for example, /shtml/test.shtml
  • QUERY_STRING_UNESCAPED — Unescaped version of any search query the client sent with all shell-special characters escaped with the slash character
  • DATE_LOCAL — Current date and local time
  • DATE_GMT — Current date and time expressed in GMT (Greenwich Mean Time)
  • LAST_MODIFIED — Date the file was last modified

Labels

java java Delete
server server Delete
sun sun Delete
webserver webserver Delete
application application Delete
system system Delete
webtier webtier Delete
guide guide Delete
webserver70 webserver70 Delete
sunjava sunjava Delete
+devguide +devguide Delete
developers developers Delete
web web Delete
developersguide developersguide Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact