Novell ACCESS MANAGER 3.1 SP2 - ACCESS GATEWAY GUIDE 2010 Manual page 66

Access gateway guide
Hide thumbs Also See for ACCESS MANAGER 3.1 SP2 - ACCESS GATEWAY GUIDE 2010:
Table of Contents

Advertisement

5 (Not available for Character profiles) If your pages contain JavaScript, use the Additional
Names to Search for URL Strings to Rewrite with Host Name section to specify JavaScript
variables or methods. You can also add HTML attribute names. (For the list of attribute names
that are automatically searched, see
Fill in the following fields:
Variable or Attribute Name to Search for Is: Lists the name of an HTML attribute or
JavaScript variable to search to see if its value contains a URL string. Click New to add a name
to the text box. To add multiple values, enter each value on a separate line.
JavaScript Method to Search for Is: Lists the names of Java methods to search to see if their
parameters contain a URL string. Click New to add a method to the text box. To add multiple
values, enter each value on a separate line.
6 Use the Additional Strings to Replace section to specify a string to search for and specify the
text it should be replaced with. The search boundary (word or character) that you specified
when creating the profile is used when searching for the string.
To add a string, click New, then fill in the following:
Search: Specify the string you want to search for. The profile type controls the matching and
replacement rules. For more information, see one of the following:
"String Replacement Rules for Character Profiles" on page 59
"String Replacement Rules for Word Profiles" on page 58
"Using $path to Rewrite Paths in JavaScript Methods or Variables" on page 60
Replace With: Specify the string you want to use in place of the search string.
7 Click OK.
8 If you have more than one profile in the HTML Rewriter Profile List, use the up-arrow and
down-arrow buttons to order the profiles.
If you create more than one profile, order becomes important. For example if you want to
rewrite all pages with a general rewriter profile (with a URL such as /*) and one specific set of
pages with another rewriter profile (with a URL such as /doc/100506/*), you need to have the
specific rewriter profile listed before the general rewriter profile.
Even if multiple Word or Character profiles are enabled, a maximum of one Word profile and
one Character profile is executed per page. The first Word profile and Character profile in the
list that matches a page are executed, and the others are ignored.
9 Enable the profiles you want to use for this protected resource. Select the profile, then click
Enable.
The default profile cannot be disabled. However, it is not executed if you have enabled another
Word profile that matches your pages, and this profile comes before the default profile in the
list.
10 To save your changes to browser cache, click OK.
11 To apply your changes, click the Access Gateways link, then click Update > OK.
12 The cached pages affected by the rewriter changes must be updated on the Access Gateway. Do
one of the following:
If the changes affect numerous pages, click Access Gateways, select the name of the
server, then click Actions > Purge All Cache.
If the changes affect only a few pages, refresh or reload the page within the browser.
66
Novell Access Manager 3.1 SP2 Access Gateway Guide
"HTML Tags" on page
51.)

Advertisement

Table of Contents
loading

Table of Contents