tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Petr Hadraba <hadra...@bluetone.cz>
Subject Re: (newb) Tomcat servlet mapping problem
Date Mon, 23 Jan 2006 20:11:29 GMT
Thank you very much!!!

I checked it and I see the following: (now, when I know what I know)
webapps/ROOT  --  the default page, which is displayed after installation

when I replace _this_ web application (using one of the three procedures above)
I will override this default application.

I will test it!

Thank you very much!

PETR


On 1/23/06, Caldarale, Charles R <Chuck.Caldarale@unisys.com> wrote:
> > From: Petr Hadraba [mailto:hadrabap@gmail.com]
> > 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
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
Mime
View raw message