Just remove everyting between
<!-- JSPC servlet mappings start -->
and
<!-- JSPC servlet mappings end -->

and change your index.jsp so that i would include either a response.sendRedirect() or meta-refresh(or more exotic javascript's location)
I don't think meta-refresh is applicable here.

Seems that when Tomcat gets the basic url,  http://thissite.com,  it looks for 
web.xml in webapps/root/web-inf.  The content of this XML file is:

<web-app xmlns="http://java.sun.com/xml/ns/j2ee";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
    version="2.4">
  <display-name>Welcome to Tomcat</display-name>
  <description>
     Welcome to Tomcat
  </description>
<!-- JSPC servlet mappings start -->
    <servlet>
        <servlet-name>org.apache.jsp.index_jsp</servlet-name>
        <servlet-class>org.apache.jsp.index_jsp</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>org.apache.jsp.index_jsp</servlet-name>
        <url-pattern>/index.jsp</url-pattern>
    </servlet-mapping>
<!-- JSPC servlet mappings end -->


My hunch is I should be changing the content of this web.xml file to point to 
the webapp that I want to be the default...





P Y <[EMAIL PROTECTED]> wrote: (not very TC specific) ...
Use a "refresh"
http://www.html-reference.com/META_httpequiv_refresh.htm


On 4/10/06, Bryan wrote:
Hi
I am new to Tomcat 5 config. I have a webapp running on tomcat, and to
get to it you have to type http://this.com/dir1/dir2/dir3/file.html, and
I want to change the settings so that when you type http://this.com,
you get to the right subdirectory. I know how to do this in IIS, but have
not figured out how on Tomcat, and I've definitely looked.
Let me know if you how. thanks.


---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2ยข/min or less.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



                        
---------------------------------
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.





--
  Su pagarba,
     Aleksandr Panzin
     IT sistemu architektas.

  With best regards,
     Alexander Panzhin
IT systems architect

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to