tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: web.xml question
Date Tue, 04 Feb 2003 04:02:12 GMT


On Mon, 3 Feb 2003, Pooleery, Manoj wrote:

> Date: Mon, 3 Feb 2003 17:22:16 -0500
> From: "Pooleery, Manoj" <Pooleery@Synygy.com>
> Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> To: 'Tomcat Users List' <tomcat-user@jakarta.apache.org>
> Subject: web.xml question
>
> Is it necessary that for each of the <servlet> elements in the web.xml, a
> corresponding <servlet-mapping> element should be there? (For a context
> other than root).

If you want your servlet to be accessible from a client request, you need
to provide at least one mapping for it.  It's perfectly legal to have more
than one mapping, if that suits your needs -- but a <servlet> definition
that does not have at least one <servlet-mapping> is not going to be of
much use to you.

>
> Thanks
> -Manoj.
>

Craig


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message