Domino Connection


Creating a web publishing application

The AbtNotesWebDocumenter sample shows you how to create documents that can be published on the WEB with the Domino HTTP server. (You should have installed Notes Version 4.6 or later when you build this application).

Functional description

When you start the sample, you will be prompted with a list of classes. Select one or more classes and press the Create WEB Doc button. The application will generate hyperlinked documents containing HTML information about the classes you selected. There will be a home page with links to documents that represent all classes you selected from the prompter. Each class document will contain links to method documents, containing the source code of the methods. The generated documents make up a hyperlinked set of web pages that can be viewed with the Domino Personal Web Navigator or with any web browser if the database is published on a Domino Web server.

Technical information

The sample is based on a database derived from the StdR46WebPages template. The only form used in the sample is Web Page Using HTML. Each document created with that form will be assigned a unique name (which is stored in the documents PageName item). The name is used to determine the URL of the document. The name given by the application consists of the class name and if appropriate the method name. It is important to understand that the document body contents have to be in HTML format when you use this type of form. Although Domino supports hyperlinks by the means of doclinks, hyperlinks can also be created using URLs - which is the technique used in this sample.

Viewing the results

The target database of this sample is named VA46web.nsf and is located in the VASAMPLE sub-directory relative to your data directory (if you have installed the product as directed). You can open the documents with your regular Notes client and view the results - but you will see the HTML source, and you will not be able to navigate through the hyperlinks. If you have set up your Personal Web Navigator database, you can also view the contents as they are supposed to be seen. Open the database and select Preview in Web Browser from the Actions menu. (If this menu option is not present, you haven't set up your personal web navigator database. See the documentation for details). Note: The Personal Web Navigator caches the documents you retrieve. If you run the sample repeatedly you might create documents with similar URLs. Be sure to delete the cache each time before you generate new documents. (This can be done by deleting the documents from the Personal Web Navigators allPages view). Finally you can also copy the database to a Domino server and open the appropriate URL (or you can modify the sample to generate the documents directly on the server).


[ Top of Page | Previous Page | Next Page | Table of Contents ]