tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anton Brazhnyk <>
Subject RE: Default Servlet
Date Fri, 08 Feb 2002 10:59:48 GMT

> -----Original Message-----
> From: Odo []
> Sent: Friday, February 08, 2002 12:27 PM
> To: Tomcat Users List
> Subject: Re: Default Servlet
> Yes Anton,in my case as you said it's enough to have only Tomcat4.
> But if I'll configure Tomcat4 running alone,listening port 80,
> what should i do to redirect all my requests directly (not using in 
> middle any html or jsp) to only one servlet Myservlet?
> Please give me some examples or links with examples?

I wouldn't recommend you using invoker servlet 
(it usually used when you call something like /servlet/myServlet.
Assuming you will use ROOT application (to leave server.xml alone)
in your web.xml you can write something like:


    <url-pattern>/</url-pattern> <!-- its default now -->

One thing you need to be aware of, absolutely any request that
isn't mapped explicitly will go to your servlet (including
static resources e.g. http://host//index.html or /images/top.jpeg)

Somebody please correct me if I'm wrong, since I tried it long ago. :)


To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message