Java URL Poller Sample
(with ISAPI on Microsoft Internet Information Server
or Microsoft Personal Web Server)
This sample implements a URL poller. The server will keep track of a list of URLs that will be periodically
polled to see if their contents have been changed since the last (saved) modified date.
This file contains instructions for running this sample with the Microsoft Internet Information Server or the
Microsoft Personal Web Server. For instructions on running the sample with the Netscape Enterprise Server,
please refer to the file NURL_Poller.html.
Click here for installation instructions.
To run this sample on your machine, you will need to install the following components:
- Microsoft Internet Information Server (NT) or Microsoft Personal Web Server (95)
- Microsoft Java VM
Server Side Instructions
To configure the Microsoft Internet Information Server
Copy the file %Starbuck%\system\javaisapi.dll into your \Inetpub\scripts directory, where
%Starbuck% is the directory where you installed Starbuck
To configure the Microsoft Personal Web Server
Copy the file %Starbuck%\system\javaisapi.dll into your \WebShare\scripts directory, where
%Starbuck% is the directory where you installed Starbuck
The classpath field is the path to the Java class files for this sample. If you run this sample from Starbuck
and are running
- Microsoft Internet Information Server
Starbuck will copy the class files and this html file to your \Inetpub\wwwroot\IURL_Poller
directory
- Microsoft Personal Web Server
Starbuck will copy the class files and this html file to your \WebShare\wwwroot\IURL_Poller
directory
Therefore if you are running
- Microsoft Internet Information Server
From your HTML editor, modify the classpath field to point to your
\Inetpub\wwwroot\IURL_Poller directory
- Microsoft Personal Web Server
From your HTML editor, modify the classpath field to point to your
\WebShare\wwwroot\IURL_Poller directory
Client Side Instructions
To run this sample from Starbuck
- Start the Microsoft Internet Information Server or the Personal Web Server
- Start Starbuck
- Open this sample project: IURL_Poller.wxp
- From the View menu of the main Starbuck menu bar, click Targets
- In the Targets window, use the right button to click on IURL_PollerWebApp. Then choose Run
Options
- On the General page, click Publish, then run a web browser
- Click Configure and choose your Web browser
- Click on the Initial URL for the browser box and type in the following URL:
http://localhost/IURL_Poller/IURL_Poller.html
- Click OK
- Click the Publish tab. On the Publish page, click Copy the files to a folder
- Click in the Folder box. If you're using the Microsoft Internet Information Server, then type the path to
your \Inetpub\wwwroot\IURL_Poller directory. If you're using the Microsoft Personal Web
Server, then type the path to your \Webshare\wwwroot\IURL_Poller
For example: d:\Inetpub\wwwroot\IURL_Poller\
- Click OK to finish
- To run this sample, from the Run menu of the main Starbuck menu bar, click Run
- In the Default Program window, click on IURL_PollerWebApp and click OK
- Wait for your Web browser to load this file
- If you wish to add a URL to the list, in the Polling Information Submission Form, click on the Add
URL box and then type the URL you want to add
- If you wish to simply see a list of the current URLs being stored, leave the Add URL box blank.
- If you wish to change the polling interval, click on the Polling Interval box and type the number of
minutes
- Click on View URLs to optionally add a new URL and to view the URL list
To run this sample from outside Starbuck
- Make sure that this html file and the class files for this project are copied to the
\Inetpub\wwwroot\IURL_Poller directory if you're running Microsoft Internet Information Server,
or to the \WebShare\wwwroot\IURL_Poller directory if you're running Microsoft Personal Web
Server. The class files for this project are located in %Starbuck%\samples\IURL_Poller\Debug
directory, where %Starbuck% is the directory where you installed Starbuck
- Start the Microsoft Internet Information Server or the Personal Web Server.
- Start your Web browser and type in the following URL:
http://localhost/IURL_Poller/IURL_Poller.html
- If you wish to add a URL to the list, in the Polling Information Submission Form, click on the Add
URL box and then type the URL you want to add
- If you wish to simply see a list of the current URLs being stored, leave the Add URL box blank.
- If you wish to change the polling interval, click on the Polling Interval box and type the number of
minutes
- Click on View URLs to optionally add a new URL and to view the URL list