tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <>
Subject RE: (newb) Tomcat servlet mapping problem
Date Mon, 23 Jan 2006 19:41:23 GMT
> From: Petr Hadraba [] 
> Subject: Re: (newb) Tomcat servlet mapping problem
> How can I ommit the servlet name in the URL?

Your application must become the default app.  To do this, it must be
named ROOT (case sensitive).  You can achieve this by:

1) replacing the contents of webapps/ROOT with your own app (not in a
.war file); or,
2) deleting webapps/ROOT and renaming your app's .war file to
webapps/ROOT.war; or,
3) putting your app somewhere other than Tomcat's webapps directory and,
in the conf/Catalina/localhost directory, placing a file named ROOT.xml
containing a <Context> element with a docBase attribute pointing to your
app (directory or .war file).

> To override "DefaultServlet" is, I think, not so good 
> solution, isn't it?

Correct, it is not an appropriate solution.  The DefaultServlet handles
static content, and must not be confused with the default webapp.

 - Chuck

MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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

View raw message