Setting index page to servlet

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
server.

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