You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Neeme Praks <ne...@one.lv> on 2000/11/27 20:56:43 UTC

mapping servlet to the root of the site?

Hi!

I'm trying to map a servlet to serve the root of a site (plain
http://myserver.com without any slashes or anything). I managed to do that
using Resin, but I haven't figured out a way yet how to do it with Tomcat
(beta 8).

The configuration files don't contain anything on this, neither does the
user/installation guide (and internet search, including mailing lists,
didn't summon anything neither).

Anyone? Is it possible at all or do I need to hack together my own
RequestInterceptor?

Best regards,
Neeme


Re: mapping servlet to the root of the site?

Posted by Serge Knystautas <se...@lokitech.com>.
I may be wrong, but this isn't really the right list of these kinds of
questions... please use tomcat-user@jakarta.apache.org that don't concern
the development of Tomcat..

To answer your question though, section 10 of servlet 2.2 specifications
talks about how to map requests to servlet.  To map the whole site, you'd
want to map /* to your servlet in your web.xml file.  I'm not sure how Resin
is letting you define that mapping, but if you're doing something different,
I would be lead to believe that Resin isn't following the servlet specs.  If
you're dealing with virtual hosting issues, there are a number of howtos
available for setting this up.

Serge Knystautas
Loki Technologies
http://www.lokitech.com/
----- Original Message -----
From: "Neeme Praks" <ne...@one.lv>
To: <to...@jakarta.apache.org>
Sent: Monday, November 27, 2000 2:56 PM
Subject: mapping servlet to the root of the site?


> Hi!
>
> I'm trying to map a servlet to serve the root of a site (plain
> http://myserver.com without any slashes or anything). I managed to do that
> using Resin, but I haven't figured out a way yet how to do it with Tomcat
> (beta 8).
>
> The configuration files don't contain anything on this, neither does the
> user/installation guide (and internet search, including mailing lists,
> didn't summon anything neither).
>
> Anyone? Is it possible at all or do I need to hack together my own
> RequestInterceptor?
>
> Best regards,
> Neeme
>
>