An extended example

 

Consider this file structure:

http://www.webserver.com/

mypages

otherpages

index.html

search.html

info.html

extras

index.html

other.html

     

index.html

extras.html

       

Suppose that http://www.webserver.com is a web server, you have an account on this server, and you place your personal pages in the mypages directory.

Let's also suppose that another user has an account on this server and that this user places his/her personal pages in the otherpages directory.

Having full access to the mypages directory, you place here some documents and you also create another directory (extras) which contains further information.

Because your web site is frequently visited, you want to provide your visitors with a search engine that will help them find information in your site more easily.

Suppose you use MyDomainSearch v.1.0 as a search utility and you place the class file in the mypages directory and the applet tag in the page search.html. This means that the codebase of the applet is http://www.webserver.com/mypages/ and that the applet can search all the pages in the site (including the pages that are located in the extras directory but not the pages located in the otherpages directory).

On the other hand, if you place the class file in the extras directory and the applet tag in an one of the pages located there, the applet can search only the pages from the extras directory and any other subdirectory it may contain, other pages being unavailable (in this case, the codebase of the applet is http://www.webserver.com/mypages/extras/).

The user that has full access to the otherpages directory cannot use the applet located in your site, he/she should use another copy of the applet to add search capabilities to his/her site.

CAUTION. Be very careful when you provide us with the codebase in order to register your copy of the applet, because the codebase is the only web address where you can place the class file, otherwise the applet will still behave as unregistered. Here you can find a helper applet that can display the codebase for you.