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

HTML Page After Rewriting

JavaScript EXPRESSION Function Test Page
// various functions including psSRAPRewriter_
convert_expression appear here.//-->
<script language="JavaScript">
function jstest2()
return ".html";
function jstest1(one)
return one;
var dir="/images/test"
var test1=jstest1(psSRAPRewriter_convert_

// The rule states that the first parameter in the function jstest1 which is of type EXPRESSION needs to be rewritten. The value of this expression is /test/images/test.html. This is prefixed with the Portal Server and the Gateway URLs.

document.write("<a HREF="+test1+">Test</a>");