Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_java thread: changing tomcats 4.0 default page, index.html to another


Message #1 by "Rudi Doku" <rudidoku@h...> on Sun, 25 Nov 2001 02:50:49
in the web.xml file you must add the following section:


<!DOCTYPE web-app 
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" 
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"><web-app>
  <welcome-file-list>
    <welcome-file>artist/JSP/login.jsp</welcome-file>
  </welcome-file-list>
</web-app>


this kinda assumes that artist is NOT a web application in tomcat. So the
user initially tries to access http://localhost:8080 and not
http://localhost:8080/artist. If artist is a web application then the bit to
be added would be: 

<!DOCTYPE web-app 
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" 
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"><web-app>
  <welcome-file-list>
    <welcome-file>JSP/login.jsp</welcome-file>
  </welcome-file-list>
</web-app>

-----Original Message-----
From: Rudi Doku [mailto:rudidoku@h...]
Sent: 25 November 2001 02:51
To: Professional Java
Subject: [pro_java] changing tomcats 4.0 default page, index.html to
another


Hello,

could anyone suggest a useful website where i can learn how to deploy 
servlets? that will help me so i stop asking questions that are probably 
very simple.

My problem is as follows - currently, I need to enter the following url to 
get to my login page :

http://localhost:8080/artist/JSP/login.jsp


Is there anyway i can configure tomcat to load this page on startup? i 
suspect it's got something to do with the context path variable in the 
server.xml file but i'm still yet to figure it out.

Thanks in advance.

Cheers,

Rudi
---
SIGS Conference for Java Development  
Targeted, focused classes, expertise level classes 
taught by Java gurus, rigorous tutorials, and 
exhibit floor makes SIGS Conference for Java
Development a learning experience unlike any 
other. Join over 10,000 developers and programmers 
from across the U.S. and around the world who
have benefited from attending SIGS/101 Conferences.
http://www.javadevcon.com

  Return to Index