Sun GlassFish Web Space Server 10.0 Secure Web Access Add-On Guide

HTML After Rewriting

<title>JavaScript SYSTEM Variables Test Page</title>
convertsystem function definition...
<script LANGUAGE="Javascript">
(window.location, window.location.pathname,”window.location”));

// Rewriter identifies window.location.pathname as a JavaScript SYSTEM variable. The value of this variable cannot be determined at the server end. So the Rewriter prefixes the variable with the psSRAPRewriter_convert_pathname function. This wrapper function determines the value of the variable at the client end and rewrites as required.

Testing JavaScript SYSTEM Variables
This page displays the path where
the current page is located when loaded.