Re: use index.class instead of index.html?

2001-05-09 Thread Kevin Fonner



Thanks, for you help but I couldn't seem to get 
that to work. In case anybody is wondering I managed to accomplish this my 
putting somthing in my web apps web.xml

servlet-mappingservlet-nameHelloWorld
/servlet-nameurl-pattern*.html/url-pattern/servlet-mapping

This intercepts the index.html file. I don't 
think I will need to have any static files in my app but if I did I could use 
.htm on them.

I'm just an amature at this so I probably shouldn't 
be giving out advice. If anyone knows a better way(or the "proper" way) 
please don't hesitate to let me know.

Thanks,
Kevin


  - Original Message - 
  From: 
  Michael Zolotarev 
  To: Kevin Fonner 
  Cc: Xme (E-mail) 
  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 yourWeb-infbecomes 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
  
  
  
-Original Message-From: Kevin Fonner 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, 9 May 2001 
    13:52To: Michael ZolotarevSubject: Re: use index.class 
instead of index.html?
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 - 
  From: 
  Michael Zolotarev 
  To: [EMAIL PROTECTED] 
  
  Cc: [EMAIL PROTECTED] 
  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.
  
-Original Message-From: Kevin Fonner 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, 9 May 2001 
13:14To: [EMAIL PROTECTED]Subject: 
Re: use index.class instead of index.html?
just the tomcat server.

  - Original Message - 
  From: 
  Michael Zolotarev 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, May 08, 2001 11:10 
  PM
  Subject: RE: use index.class 
  instead of index.html?
  
  Which server?
  
-Original Message-From: Kevin Fonner 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, 9 May 2001 
13:12To: [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?This footnote confirms that this email message has 
been swept byMIMEsweeper 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 tha

RE: use index.class instead of index.html?

2001-05-09 Thread Sean Pritchard

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-filewelcome.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?




use index.class instead of index.html?

2001-05-08 Thread Kevin Fonner



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


RE: use index.class instead of index.html?

2001-05-08 Thread Michael Zolotarev



Which 
server?

  -Original Message-From: Kevin Fonner 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, 9 May 2001 
  13:12To: [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?This 
  footnote confirms that this email message has been swept byMIMEsweeper 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.



Re: use index.class instead of index.html?

2001-05-08 Thread Kevin Fonner



just the tomcat server.

  - Original Message - 
  From: 
  Michael Zolotarev 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, May 08, 2001 11:10 
PM
  Subject: RE: use index.class instead of 
  index.html?
  
  Which server?
  
-Original Message-From: Kevin Fonner 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, 9 May 2001 
13:12To: [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?This 
footnote confirms that this email message has been swept byMIMEsweeper 
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, 
  includingcomputer viruses.


RE: use index.class instead of index.html?

2001-05-08 Thread Michael Zolotarev



have a 
look at /conf/web.xml. Check our welcome-file-list 
element.

  -Original Message-From: Kevin Fonner 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, 9 May 2001 
  13:14To: [EMAIL PROTECTED]Subject: Re: use 
  index.class instead of index.html?
  just the tomcat server.
  
- Original Message - 
From: 
Michael Zolotarev 
To: [EMAIL PROTECTED] 

Sent: Tuesday, May 08, 2001 11:10 
PM
Subject: RE: use index.class instead of 
index.html?

Which server?

  -Original Message-From: Kevin Fonner 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, 9 May 2001 
  13:12To: [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?This footnote confirms that this email message has been 
  swept byMIMEsweeper 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, includingcomputer 
viruses.