By default the Tomcat renders the default home page which is specified in
the conf/web.xml such as index.html which is located under the
/Tomcat5.0/webapps/ROOT folder. You need to redirect the URL from
index.html to your default home page. So, Please modify the index.html file
one located under /Tomcat5.0/webapps/ROOT with the following content

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Re-direct</title>
<meta http-equiv="refresh" content="0; url=/vruksha">
</head>
<body>

</body>
</html>

You can also mention the default home page URL in the
/Tomcat5.0/conf/web.xml in <welcome-file-list> element as below
  <welcome-file-list>
       <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>

Hope this will solve your problem.

Thanks
T.G. Somashekara


                                                                                
                                                
                      Narahari 'n'                                              
                                                
                      Savitha                  To:      users@tomcat.apache.org 
                                                
                      <[EMAIL PROTECTED]         cc:                            
                                                  
                      .com>                    Subject: ROOT webapp question 
confused with hosts                                
                                                                                
                                                
                      11/08/2005 09:23                                          
                                                
                      AM                                                        
                                                
                      Please respond                                            
                                                
                      to "Tomcat Users                                          
                                                
                      List"                                                     
                                                
                                                                                
                                                
                                                                                
                                                




Friends,

I am unable to decipher this.

I am on windows xp running tomcat as my webserver/jsp engine 5.5.09

I have http://savithari.dyndns.org/vruksha that works correctly.

but

http://savithari.dyndns.org always brings up the default page of tomcat.

I know that I can rename the ROOT folder to be able accomplish a direct hit
to http://savithari.dyndns.org to bring up the page I want.

BUT THAT IS NOT WHAT I WANT.

I want to be able to keep my webpage contents under M:\VRUKSHA which
contains the entire webpage.

I still want the configurate of tomcat to point the ROOT to this folder
M:\VRUKSHA so that I can update the correct folder.

Is this too much to ask ?

If not that atleast tell me an alternate way to much with the ROOT so that
RENAMING MY APPLICATION TO ROOT is not the only solution.

Thank your for your time and help.
-Narahari





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

Reply via email to