tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Eric Miller" <>
Subject Default servlet mapping not working in Tomcat 5.0.16?
Date Fri, 12 Dec 2003 18:23:24 GMT
I'm using Tomcat 5.0.16 and I'm trying to make it so that if a user enters a
path like, http://myserver/myapp it runs a default servlet for that path.

According the the Servlet 2.4 spec, you can do this by mapping "/" to a
servlet. However, for me, it's just printing out a directory listing of the
/myapp directory when I try it (on a side note, how do you globally disable
directory browsing?).

I'm using a web.xml similar to the following.

<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns=""
xsi:schemaLocation=" web-app_2_4.xsd"

Also, I have something similar to the following in my server.xml.

<Context path="/myapp" docBase="myapp" debug="0" reloadable="true">

Any ideas?

I can do what I want to do using an index.jsp with a redirect, but, I would
like to avoid having it do a redirect if possible.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message