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

Re: servlets and subdirectories

From: Benoit Mahe <Benoit.Mahe@sophia.inria.fr>
Date: Tue, 23 Mar 1999 10:08:50 +0100
Message-ID: <36F75A22.D27DB7F2@sophia.inria.fr>
To: lacall <lacall@micron.com>
CC: "'www-jigsaw@w3.org'" <www-jigsaw@w3.org>
lacall wrote:

> Can jigsaw find servlets if they are in a *subdirectory* of the servlets
> directory?

Yes, it can.

>
> If so, would I have to configure this directory myself, so it looks like the
> servlets directory?

It depends, if your subdirectory is a package, you just need to put the full
name of the servlet class in the ServletWrapper.

eg: WWW/servlet/org/w3c/MyServlet.class
        Class in servlet wrapper under WWW/servlet/ : org.w3c.MyServlet

If it's not a package directory, you have to do exactly what you said:

> (Adding a ServletDirectoryFrame to the subdirectory
> entry under servlets in jigadmin, then setting its indexer attribute to
> servlet-indexer.)

>
> And if I do that, will the servlets in the subdirectories still be
> automatically reloaded by the server when I update them with new versions?

Yes.

>
> Lastly, if I do the above, will this approach be compatible with other web
> servers, like Apache?

Well, I don't know the way Apache manage 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, 23 March 1999 04:08:58 GMT

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