tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Toby Piper" <tpi...@packeteer.com>
Subject Does servlet mapping work in Tomcat 3.1?
Date Wed, 22 Nov 2000 21:35:42 GMT
Hi All,

I am trying to get servlet mapping to work in my web app. I have tried the
various examples given in the docs and it still doesn't work.

I have seen some other queries about this in the archives but no responses.

Clearly the docs indicate that Tomcat is supposed to support servlet mapping.
Does anyone know if this is working?

Here's what I want to do:

I want this URI:

   http://host:8080/myApp/MyMap

to invoke my servlet named login.


I have this context set up in server.xml:

        <Context path="/myApp"
                 docBase="C:\MyApp"
                 debug="0"
                 reloadable="false" >
        </Context>

In my Apps web.xml file I have:

	<servlet-mapping>
		<servlet-name>Login</servlet-name>
        <url-pattern>/MyMap</url-pattern>
	</servlet-mapping>

	<servlet>
		<servlet-name>Login</servlet-name>
		<servlet-class>Login</servlet-class>
	</servlet>

I CAN access the servlet directly by http://host:8080/myApp/servlet/Login

but not by http://host:8080/myApp/MyMap

What am I doing wrong?

I'm using tomcat 3.1 latest stable release on Win NT 4.0.

Thanks in advance,
Toby


Mime
View raw message