You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dave Kennedy <da...@dksy.net> on 2004/07/07 02:13:14 UTC

Configure Tomcat to default to index.jsp

How is Tomcat configured to default to index.jsp?

Here is a test app, but it is necessary to give the entire path:
  http://myhome.com/helloworld/index.jsp

instead of:
  http:// myhome.com/helloworld/

What needs to be configured on Linux and Windows XP?



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: Configure Tomcat to default to index.jsp

Posted by Schalk <sc...@volume4.co.za>.
In the web.xml file that goes into your webapps WEB-INF/, there is a
<welcome-file-list/> you can add the following:

<welcome-file-list>
    <welcome-file>
            index.jsp
    </welcome-file>
    <welcome-file>
            index.html
    </welcome-file>
  </welcome-file-list>

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:schalk@volume4.co.za
web: www.volume4.co.za
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you. 

:: -----Original Message-----
:: From: Dave Kennedy [mailto:davek@dksy.net]
:: Sent: Wednesday, July 07, 2004 2:13 AM
:: To: tomcat-user@jakarta.apache.org
:: Subject: Configure Tomcat to default to index.jsp
:: 
:: How is Tomcat configured to default to index.jsp?
:: 
:: Here is a test app, but it is necessary to give the entire path:
::   http://myhome.com/helloworld/index.jsp
:: 
:: instead of:
::   http:// myhome.com/helloworld/
:: 
:: What needs to be configured on Linux and Windows XP?
:: 
:: 
:: 
:: ---------------------------------------------------------------------
:: To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
:: For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org