Re: Running servlets -- an example would be nice!

I was able to get a simple servlet to work.  For others who may have
similar problems here is what I did:

- Wrote a servlet called SimpleServlet.
- Put it in the .../www/servlets directory ("servlets" not "servlet")
- Accessed it by "http://serverName/servlets/SimpleServlet"

Earlier I had the servlet in a subdirectory of servlets.  Apparently
 "http://serverName/servlets/dirA/dirB/SimpleServlet" does not work.

Regards, Ashok


                                                                   
 (Embedded                                                         
 image moved to Benoit Mahe <Benoit.Mahe@sophia.inria.fr>          
 file:          02/09/99 04:07 AM                                  
 pic29453.pcx)                                                     
                                                                   




To:   Ashok Malhotra/Watson/IBM
cc:   www-jigsaw@w3.org
Subject:  Re: Running servlets -- an example would be nice!
petsa@us.ibm.com wrote:

> I'm having trouble running a servlet from Jigsaw.
> The server finds the .html file but the code does not
> execute.  No doubt there is some simple bug.

You mean an applet I guess, well we forgot to put class extension
in the default indexer, so applet class files are not reachable by
default.
That's a mistake.
But, you can add it by yourself, please read [1]. You just have to
create a resource called "class" in the default indexer, a FileResource
associated to an HTTPFrame with a content type equals to
application/octet-stream.

This will be added in the next Jigsaw release.

For servlets, it's simple, you just have to put the servlet class file
in the
directory WWW/servlet. [2]

[1] http://www.w3.org/Jigsaw/Doc/User/indexers.html
[2] http://www.w3.org/Jigsaw/Doc/User/servlets.html#install-servlets

Regards, Benoit.

--
- Benoît Mahé -------------------------------------------------------
                      World Wide Web Consortium (W3C)
                    Architecture domain - Jigsaw Team

  http://www.w3.org/People/Mahe - bmahe@w3.org - +33.4.92.38.79.89
---------------------------------------------------------------------

Received on Tuesday, 9 February 1999 14:00:35 UTC