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

DJS Parameter Example

Assume the base URL of the page is:

Page Content

menu.addItem(new NavBarMenuItem("All Available Information","JavaScript:top.location=\q\q"));


<Function type="DJS" name="NavBarMenuItem" paramPatterns=",y"/>
<Variable type="URL" name="top.location"/>


menu.addItem(new NavBarMenuItem("All Available Information",


The first rule specifies that the second parameter of the function NavBarMenuItem which contains JavaScript needs is to be rewritten. Within the JavaScript, the variable top.location also needs to be rewritten. This variable is rewritten using the second rule.