You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Steve McRoberts <st...@doit.wisc.edu> on 2001/06/07 16:10:22 UTC

Servlet-Mapping

I'm just beginning to explore and cannot get Servlet-Mapping to work (as I
expect).

Anja Beckmann gave some great replies in the list but it didn't help my
case.

Using Win2K (don't say it) and Tomcat 4b5.

The flow is: jsp posts -> servlet which dispatcher.forwards -> jsp. (This is
from the Goodwill Tomcat book
http://www.onjava.com/lpt/a//onjava/2001/04/19/tomcat.html.) Of course, any
links in the target jsp page look like "/onjava/servlet/theLink" instead of
"/onjava/theLink".

My web.xml looks like this:

<servlet>
	<servlet-name>login</servlet-name>
	<servlet-class>com.onjava.login</servlet-class>
</servlet>
<!-- mapping comes after servlet definitions -->
<servlet-mapping>
	<servlet-name>login</servlet-name>
	<url-pattern>/onjava</url-pattern>
</servlet-mapping>

Do you have ANY ideas?

Steve McRoberts
steve.mcroberts@doit.wisc.edu
DoIT - Business & Financial Applications
1210 W Dayton St
Madison, WI 53706
608-265-6757