W3C home > Mailing lists > Public > www-jigsaw@w3.org > March to April 1998

Windows95 and Servlet Loading and Testing

From: JLWhite <jlwhite@chrysalis.org>
Date: Sun, 1 Mar 1998 11:11:48 -0600
Message-ID: <000201bd4547$073bdc40$9a5529d1@newmicronpc>
To: "Jigsaw List" <www-jigsaw@w3.org>
Help please I am new to web servers and their actions but I am willing to learn and it looks like I am the only person who is so confused.

Okay I have Jigsaw 2.0 up and running. I have JDK 1.1.5 and JSDK 1.0.1. I have my classpath set to both kits and the path also set. I would like to start writing perl and servlet programs on this stand alone test machine.  Windows 95 and Jigsaw 2.0 and Perl 5.

I really have read almost all the Jigsaw html docs for both versions (1 and 2).  And am I confused.  I would like to get Perl and Servlet test programs running, but I still have no idea how to load and test servlets or Perl.  But for this message I would like to learn how to bring up servlet support for Jigsaw 2.0.

I need someone to please explain how to bring up servlet support via step by step instructions such as "click on this in JigAdmin" then "highlight this action" then "click on this" type of servlet support install instructions.

Example for Jigsaw 2.0 servlet install I have done this:


First I assume that Jigsaw is now compiled for servlet support and I do not have to recompile all of Jigsaw!

> 1.Create the directory servlets under WWW

Clear instruction and I did this !

> 2.Start the JigAdmin program and unfold all the nodes down to the space
> node.

I did this via the command line by typing the following:
     java org.w3c.jigadm.Main -root D:\Jigsaw\Jigsaw http://localhost:8009

Up pops the JigAdmin, I enter the passwords and click on down to the space node under the folder http-server (once again I assume this is where the space node is). So far everything is fine.
  
> 3.Select the space node, and activate the Resources editor helper. Enter
> the ServletDirectory identifier (ie servlets) and the class of the
> resource (ie w3c.jigsaw.servlet.ServletDirectory)

First was does "Enter the ServletDirectory identifier (ie servlets)" mean ? Enter where ?
Is this the input box at the top of the screen called identifier ? What do I type there ? If not then what is this text box ? Do I type the word servlets or the path www/servlets ?  For now I put nothing in this box  and went on to this:

The above quoted instructions is for Jigsaw 1 so for Jigsaw 2 the below was posted.

>This doc is for Jigsaw 1.0betaxx, not for Jigsaw2.0alpha1. But the way to
>configure servlets under Jigsaw is almost the same. The differents classes
>to use are:

>1) intstead of "w3c.jigsaw.servlet.ServletDirectory" use
>a "org.w3c.jigsaw.resources.DirectoryResource" and add it a
>"org.w3c.jigsaw.servlet.ServletDirectoryFrame".

Okay I have opened JigAdmin, clicked on http-server, then clicked on the word space under http-server (not on the folder icon but the word space) - I see the options for the above "org.w3c.jigsaw stuff" by clicking on the middle input box arrow. But first I click on the top button called Resources. Then I click on the middle arrow and select the option of "org.w3c.jgsaw.resources.DirectoryResource".

Okay do I click on Add Resource at the bottom now or do I click on the top button Frames and select the above frame now ?  What does this mean "DirectoryResource" and add it a "org.w3c.jigsaw.servlet.ServletDirectoryFrame" - what does "add it a" mean ? Add it by how ?  I did the following:

I clicked on the top of the screen Resources button, then selected the resource above for version 2, then clicked on the Add Resource button on the bottom of the screen. Then I clicked on the top Frames button, selected the DirectoryFrame for version 2 as per above, then I clicked on the Add Frame button at the bottom of the screen and I get a Java error window RemoteAcessException !

Did I do anything ?  Do I click on reset ?  Turn off the JigAdmin ?  Does JigAdmin tell me I did anything right in anyway ?  Can I check on anything at this point ?

>2) instead of "w3c.jigsaw.servlet.ServletWrapper" use a
">org.w3c.jigsaw.servlet.ServletWrapper" that will auto
>register a "org.w3c.jigsaw.servlet.ServletWrapperFrame".

I never got to here - does the auto register thingy tell me it does it ?

>Then the way to configure is almost the same.

I never got this far !

>The doc for Jigsaw2.0 will be available soon.

I hope so and with a very simple click here then click here type of instructions for very confused people like myself <g> !

> 4.Put the servlet class (ie DateServlet.class) in WWW/servlets.

Is JigAdmin still up and running while I'm doing this ? If I get this far, this I can do okay !

> 5.Create a ServletWrapper to the ServletDirectory and call it
> DateServlet for example.

Is there an example of this "ServletWrapper" some where please ?  Is this something I write via Java or am I still working through JigAdmin here ? I see that DateServlet is in the JSDK.

> 6.Set the servlet-class field of the ServletWrapper to DateServlet

Ditto above for this please ?

> 7.Commit your changes

Here I think you mean (while still in JigAdmin with the space node highlighted) click on the JigAdmin button on the top of the screen called Attribute then click on the bottom of the screen the button called Commit ?  This is the only commit button I see !

Help ?

I also see that while in JigAdmin under http-server then under space I see servlet and all the above actions so am I in the right place for the above under space only. What goes here in this servlet location when I highlight it under JigAdmin ?

I'm so confused as to what a realm is, what an indexer is and what a property is and what a space is !

Soon hopefully we will do the same thing for Perl CGI type support <g>.

Thanks,
JLW
Received on Sunday, 1 March 1998 14:16:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:27 GMT