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.


 

Polling Information Submission Form using the POST method

(Before submitting this form, you must modify the classpath field. Click here for instructions. )

If you wish to add a new URL to the list, fill in the field below. If you simply wish to view a list of the URLs currently in the list, leave the URL field below blank.

Add this URL:

For example: http://localhost

 If you wish to set the polling interval (in minutes), fill in the field below.

Set Polling Interval to minute(s).


 

Polling Information Submission Form using the GET method

(Before submitting this form, you must modify the classpath field. Click here for instructions. )

If you wish to add a new URL to the list, fill in the field below. If you simply wish to view a list of the URLs currently in the list, leave the URL field below blank.

Add this URL:

For example: http://localhost

 If you wish to set the polling interval (in minutes), fill in the field below.

Set Polling Interval to minute(s).



 

Installation Instructions

To run this sample on your machine, you will need to install the following components:

 

 

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

To modify the classpath form field

The classpath field is the path to the Java class files for this sample. If you run this sample from Starbuck and are running

Therefore if you are running

 

 

Client Side Instructions
 

To run this sample from Starbuck

  1. Start the Microsoft Internet Information Server or the Personal Web Server
  2. Start Starbuck
  3. Open this sample project: IURL_Poller.wxp
  4. From the View menu of the main Starbuck menu bar, click Targets
  5. In the Targets window, use the right button to click on IURL_PollerWebApp. Then choose Run Options
  6. On the General page, click Publish, then run a web browser
  7. Click Configure and choose your Web browser
  8. Click on the Initial URL for the browser box and type in the following URL:
        http://localhost/IURL_Poller/IURL_Poller.html 
  9. Click OK
  10. Click the Publish tab. On the Publish page, click Copy the files to a folder
  11. 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\ 
  12. Click OK to finish
  13. To run this sample, from the Run menu of the main Starbuck menu bar, click Run
  14. In the Default Program window, click on IURL_PollerWebApp and click OK
  15. Wait for your Web browser to load this file
  16. 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
  17. If you wish to simply see a list of the current URLs being stored, leave the Add URL box blank.
  18. If you wish to change the polling interval, click on the Polling Interval box and type the number of minutes
  19. Click on View URLs to optionally add a new URL and to view the URL list

 

To run this sample from outside Starbuck

  1. 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
  2. Start the Microsoft Internet Information Server or the Personal Web Server.
  3. Start your Web browser and type in the following URL:
        http://localhost/IURL_Poller/IURL_Poller.html 
  4. 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
  5. If you wish to simply see a list of the current URLs being stored, leave the Add URL box blank.
  6. If you wish to change the polling interval, click on the Polling Interval box and type the number of minutes
  7. Click on View URLs to optionally add a new URL and to view the URL list