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

Setting index page to servlet

From: Dennis Sosnoski <dms@sosnoski.com>
Date: Wed, 29 Mar 2000 15:20:46 -0800
Message-ID: <38E28FCE.7EB4E93F@sosnoski.com>
To: jigsaw <www-jigsaw@w3.org>
I've written a simple servlet to handle dispatching a request to one of two
pages depending on the User-Agent string. I want this servlet to be my default
root page.

I first added the class file (DefaultServlet.class) under root/servlet and added
a ServletWrapper for the servlet. I could then access the servlet directly from
a browser as localhost/servlet/DefaultServlet, so I tried editing the Root
resource and changing the HTTPFrame to specify /servlet/DefaultServlet as the
Index. I tried a few variations on this, but couldn't get it to work - instead,
I'd receive a directory listing of my root directory.

Next I added a Default resource under Root as a FramedResource, then added a
ServletMapperFrame to that, specifying the servlet-url as
/servlet/DefaultServlet. This works fine for both web browser and phone browser
clients - unfortunately, after I save the configuration, stop the servers from
JigAdmin, and then restart, the HTTPFrame under Root is changed back to
Overview.html. I'd like to be able to have this configuration restore properly
without having to go in and set it with JigAdmin every time I restart the

Am I the only person having difficulty with Jigsaw configuration? I'm sure I'm
doing something wrong here, but after having looked through the documentation I
don't understand what it is. I'm running Jigsaw 2.0.4 with JDK 1.2.2 on Windows
98. Thanks for any help,

  - Dennis
Received on Wednesday, 29 March 2000 18:21:03 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:36 UTC