Example: Using the DocumentContext property in Web agent scripts
This script uses the Print statement and the CGI variable remote_user to display "User =" and the Web user's name. The script sets the DocumentContext before executing the rest of the script. The variable assumes a text list.
Dim session As New NotesSession
Dim doc As NotesDocument
Set doc = session.DocumentContext
Print "User = " + doc.remote_user(0)
Note: HTML
generated by a Web agent does not include the <TITLE></TITLE>
tags.