Site Outliner Sample

Webcast your site! Using the WebSphere Applications Server support for XML Document Structure Services, you can make your Web site into a channel and automatically deliver your Web pages to interested customers.


Run this sample


How this sample works:

1. You create a Channel Definition Format(CDF) file on your server. This file contains a map or index to the pages you want delivered.

2. Customers add your channel to their browsers, subscribe to your site, and they will automatically be sent updates to those pages. (To do this, they must have a CDF-capable client or browser that supports channels.)


How to use this sample on your web page:


Use our SiteOutliner
to create a CDF file that conforms to the Channel Definition Format Version 1.0. We give you two ways to create this file. Both methods produce a hierarchical outline (or tree structure) of the selected documents in the target directory.

Run our SiteOutliner servlet from an HTML form and create a hierarchical index to the document root directory on your Web server. Choose the depth in the directory (how many levels beneath the root) to recursively scan for documents.

Or, run our SiteOutliner from your /servlets directory. It lets you choose any target directory, as well as the depth, file types to include, files and directories to exclude, and the type of encoding. For the syntax and parameters, at a command prompt, enter:    java SiteOutliner -help

Note: In order to run the SiteOutliner from a command prompt, you will need to put the applicationserver_root\lib\xml4J.jar on the system CLASSPATH. The resulting .cdf file will be placed in the root of the target directory that you scan.