You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "McRaven, Brian" <bm...@ncr.com> on 2006/08/16 20:23:06 UTC
Changing to different index.jsp from Tomcat default index.jsp
When I start my Tomcat server and link to http://localhost/ I get the
default index.jsp that comes with Apache Tomcat Server. I want to use
my own index.jsp how do I achieve this objective?
Brian
Re: Changing to different index.jsp from Tomcat default index.jsp
Posted by David Smith <dn...@cornell.edu>.
Right. All of the jsps shipped with tomcat are precompiled to classes.
You'll have to remove a servlet mapping in webapps/ROOT/WEB-INF/web.xml
before tomcat will offer up your custom index.jsp.
--David
McRaven, Brian wrote:
>I thought it was created in a Servlet and you had to change some
>parameters in one of the .xml files like web.xml in the ROOT directory.
>Is this correct for Apache Tomcat 5.5.17?
>
>-----Original Message-----
>From: Lou Caudell [mailto:lcaudell@wtceng.com]
>Sent: Wednesday, August 16, 2006 3:12 PM
>To: Tomcat Users List
>Subject: Re: Changing to different index.jsp from Tomcat default
>index.jsp
>
>McRaven, Brian wrote:
>
>
>>When I start my Tomcat server and link to http://localhost/ I get the
>>default index.jsp that comes with Apache Tomcat Server. I want to use
>>
>>
>
>
>
>>my own index.jsp how do I achieve this objective?
>>
>>Brian
>>
>>
>>
>>
>It's under webapps/ROOT. But, rename the original one, as it is useful.
>- Lou Caudell
>
>---------------------------------------------------------------------
>To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
>e-mail: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>---------------------------------------------------------------------
>To start a new topic, e-mail: users@tomcat.apache.org
>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Changing to different index.jsp from Tomcat default index.jsp
Posted by Markus Schönhaber <ma...@schoenhaber.de>.
McRaven, Brian wrote:
> I thought it was created in a Servlet and you had to change some
> parameters in one of the .xml files like web.xml in the ROOT directory.
> Is this correct for Apache Tomcat 5.5.17?
Yes. And the index.jsp the OP wants to replace, even contains this
information:
"NOTE: This page is precompiled. If you change it, this page will not change
since it was compiled into a servlet at build time. (See
$CATALINA_HOME/webapps/ROOT/WEB-INF/web.xml as to how it was mapped.)"
Regards
mks
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Changing to different index.jsp from Tomcat default index.jsp
Posted by "McRaven, Brian" <bm...@ncr.com>.
I thought it was created in a Servlet and you had to change some
parameters in one of the .xml files like web.xml in the ROOT directory.
Is this correct for Apache Tomcat 5.5.17?
-----Original Message-----
From: Lou Caudell [mailto:lcaudell@wtceng.com]
Sent: Wednesday, August 16, 2006 3:12 PM
To: Tomcat Users List
Subject: Re: Changing to different index.jsp from Tomcat default
index.jsp
McRaven, Brian wrote:
> When I start my Tomcat server and link to http://localhost/ I get the
> default index.jsp that comes with Apache Tomcat Server. I want to use
> my own index.jsp how do I achieve this objective?
>
> Brian
>
>
It's under webapps/ROOT. But, rename the original one, as it is useful.
- Lou Caudell
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Changing to different index.jsp from Tomcat default index.jsp
Posted by Lou Caudell <lc...@wtceng.com>.
McRaven, Brian wrote:
> When I start my Tomcat server and link to http://localhost/ I get the
> default index.jsp that comes with Apache Tomcat Server. I want to use
> my own index.jsp how do I achieve this objective?
>
> Brian
>
>
It's under webapps/ROOT. But, rename the original one, as it is useful.
- Lou Caudell
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org