You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by garrett smith <ja...@yahoo.com> on 2002/09/01 00:30:41 UTC

Re: Index.html/default welcome file

index.html, index.htm, index.jsp, welcome.do, 

If welcome-file-list really does work, then it is not necessary to name your
file index.htm from index.html. 

welcome-file-list really does work, so it is not necessary to name your file
index.htm from index.html. 

I don't have a solution, though. Sorry.

I have no problem with welcome-file-list in 4.0.4. Post a link to your
web.xml.txt file.

Garrett


--- Filip Lou <fl...@cgey.nl> wrote:
> try using index.htm
> 
> ----------------------------------------
> Filip Lou
> 
> ----------------------------------------
> ----- Original Message -----
> From: <ca...@ps.ge.com>
> To: <to...@jakarta.apache.org>
> Sent: Friday, August 30, 2002 11:41 PM
> Subject: Index.html/default welcome file
> 
> 
> > We are running tomcat/catalina as a thread/embedded.  For some reason even
> > though we have in the web.xml(in both the conf directory and in the
> WEB_INF
> > of out application) the definition of the "welcome-file-list", we cannot
> get
> > the index.html when we type "http://myhost:8080" in the browser, we have
> to
> > explicitly type "http://myhost:8080/index.html".  Does anybody has a
> > solution to this problem?
> >
> > Thank You
> > Carlos Rivera
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
> 
> --
> ****************************************************************************
> This message contains information that may be privileged or confidential and
> is the property of the Cap Gemini Ernst & Young Group. It is only intended
> for the person to whom it is addressed. If you are not the intended
> recipient, you are not authorized to read, print, retain, copy disseminate,
> distribute, or use this message or any part thereof. If you receive this
> message in error, please notify the sender immediately and delete all copies
> of this message.
> ****************************************************************************
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 


=====
http://dhtmlkitchen.com/

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Index.html/default welcome file - OT

Posted by Martin Jacobson <ma...@libero.it>.
garrett smith wrote:

> Still having troubles? 
> 
> On Mac OS, the OS will add an extra extension based on file type. This is done
> to make the computer more user-friendly, although it is exactly the opposite:
> it is counter-intuitive.
> 
> I had to check "Show Info" on right-click menu and remove the hidden extension.
> 
> I don't know if your OS does this, but you may want to check it out.
> 

Um, actually, no, it doesn't (we're talking OS X, right?). You can, if 
you want, hide the extension, but Mac OS X doesn't add one of its own. I 
suspect this so-called 'feature' was to make the Finder more like 
Windows for those making the upgrade.
A Mac doesn't need a file extension to tell it what kind of file it is 
(this is Windows behaviour) - Mac files have a 'resource fork' which 
contains, amongst other things, the file type, and the associated 
application.

Sorry for the soapbox, but I'd like to reassure fellow Mac OS X users 
out there - Tomcat works really well - forget it's a Mac, remember it's 
running BSD4.2 !

Martin


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Index.html/default welcome file

Posted by garrett smith <ja...@yahoo.com>.
Still having troubles? 

On Mac OS, the OS will add an extra extension based on file type. This is done
to make the computer more user-friendly, although it is exactly the opposite:
it is counter-intuitive.

I had to check "Show Info" on right-click menu and remove the hidden extension.

I don't know if your OS does this, but you may want to check it out.

Also, consider waiting for five seconds between startup and shutdown. I get
mixed results when I don't wait.

I changed my welcome-file-list in the web.xml file below and successfully
navigated to the url below. I changed server.xml to make tomcat respond to port
80.

url:
http://127.0.0.1/struts-blank2/
goes to:
http://127.0.0.1/struts-blank2/foo.barf

<?xml version="1.0" encoding="ISO-8859-1"?>

<!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>

  <!-- Standard Action Servlet Configuration (with debugging) -->
  <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
      <param-name>config</param-name>
      <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
      <param-name>debug</param-name>
      <param-value>2</param-value>
    </init-param>
    <init-param>
      <param-name>detail</param-name>
      <param-value>2</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
  </servlet>


  <!-- Standard Action Servlet Mapping -->
  <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
  </servlet-mapping>


  <!-- The Usual Welcome File List -->
  <welcome-file-list>
    <welcome-file>foo.barf</welcome-file>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>


  <!-- Struts Tag Library Descriptors -->
  <taglib>
    <taglib-uri>/tags/struts-bean</taglib-uri>
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
  </taglib>

  <taglib>
    <taglib-uri>/tags/struts-html</taglib-uri>
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
  </taglib>

  <taglib>
    <taglib-uri>/tags/struts-logic</taglib-uri>
    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
  </taglib>

  <taglib>
    <taglib-uri>/tags/struts-nested</taglib-uri>
    <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
  </taglib>

  <taglib>
    <taglib-uri>/tags/struts-tiles</taglib-uri>
    <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
  </taglib>

</web-app>


=====
http://dhtmlkitchen.com/

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>