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

Applet Rule Example

Assume the base URL of the page is:

Page Content:

<applet codebase=”appletcode” code=”
RewriteURLinApplet.class” archive=”/test.jar”>
<param name=Test1 value="/index.html">


<Applet source="*/rule1.html" code=
"RewriteURLin*.class" param="Test*"/>


<APPLET codebase=”gateway-URL
applet/appletcode” code=”RewriteURLinApplet.class”
 archive=”/test.jar”><param name=”Test1” value="


The codebase attribute is rewritten because <Attribute name="codebase"/> is a defined rule in the default_gateway_ruleset.

All parameters whose names begin with Test are rewritten. The base URL of the page on which the applet code displays and the Gateway URL are prefixed to the value attribute of the param tag.