Here's how I solved this...
 
I found that the welcome file list seems to require an actual file not a
mapping to a servlet (at least that appeared to be the behavior).  So I
created a welcome.jsp and put it in the welcome file list in web.xml.  Then
in the welcome.jsp I used the jsp:forward tag to forward control to my
desired servlet.  Snippets below...
 
from welcome.jsp...
<html>

<body bgcolor="white">

<!-- Forward to a servlet -->

<jsp:forward page="/index" />

</body>

</html>

 

from web.xml...

<welcome-file-list> 

<welcome-file>welcome.jsp</welcome-file> 

</welcome-file-list>

-----Original Message-----
From: Kevin Fonner [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 11:12 PM
To: [EMAIL PROTECTED]
Subject: use index.class instead of index.html?


How do I get the web server to start with a servlet instead of an html file?

Reply via email to