----- Original Message -----
Sent: Wednesday, May 09, 2001 2:47
AM
Subject: RE: use index.class instead of
index.html?
I'm
a bit confused myself now, but I'll try to explain what I think the Tomcat's
logic is.
In
Server.xml you must've defined your Home directory, and a number of
contexts.
Tomcat processes all specified contexts and adds them to its
list.
Tomcat looks under your <home> directory, and add all
subdirectories and all files to the "automatic context load" list. If you
start tomcat from the console window, you'll see it reports about it. First go
the contexts you've specified explicitely, and then "automatic" contexts -
whatever Tomcat found in your <home> folder.
When
you type http://localhost:8080, Tomcat
searches all automatic(!) contexts. It looks for any of the files defined in
the <welcome-file-list>.
Whichever the first, the file is returned to the
browser.
Consequently, if you want to define your .class to be executed by
default, you must modify the <welcome-file-list>, and make sure that the
.class can be found in one of the "automatic" contexts.
I
guess you need to make sure that your Web-inf becomes one of the
automatic contexts, by placing it under your <home>.
Hope
it helps. Would like you to let me know if I was right in my
assumptions.
M
I've looked at the welcome file list element
and it seems to work for jsp's and html files but not servlets. I
thought servlets had to go in the /web-inf/classes directory? I tried
it anyways and put the class file in root and made the adjustment in the
/conf/web.xml it didn't seem to work.
Thanks,
Kevin
----- Original Message -----
Sent: Tuesday, May 08, 2001 11:19
PM
Subject: RE: use index.class instead
of index.html?
have a look at /conf/web.xml. Check our <welcome-file-list>
element.
just the tomcat server.
----- Original Message -----
Sent: Tuesday, May 08, 2001 11:10
PM
Subject: RE: use index.class
instead of index.html?
Which server?
How do I get the web server to start
with a servlet instead of an html file?
This footnote confirms that this email message has
been swept by
MIMEsweeper for the presence of computer
viruses.
-----------------------------------------------------------------------------------------------------------------
The
information contained in this message is confidential and is intended
for the addressee(s) only. If you have received this message in
error or
there are any problems please notify the originator
immediately. The
unauthorized use, disclosure, copying or
alteration of this message is
strictly forbidden. Baltimore
Technologies plc will not be liable for direct,
special, indirect
or consequential damages arising from alteration of the
contents
of this message by a third party or as a result of any virus being
passed on.
In addition, certain Marketing collateral may be
added from time to time to
promote Baltimore Technologies
products, services, Global e-Security or
appearance at trade shows
and conferences.
This footnote confirms that this email message
has been swept by
Baltimore MIMEsweeper for Content Security
threats, including
computer
viruses.