You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Bryan <br...@yahoo.com> on 2006/04/10 16:37:57 UTC

how setup landing page in tomcat

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.

Re: how setup landing page in tomcat

Posted by ma...@aim.com.
You can map the url to a servlet.
Or you can use and index.jsp or index.html to redirect to wherever you want. 
 
--
Manivannan Palanichamy
http://geocities.com/manivannan57
 
 
 
-----Original Message-----
From: Bryan <br...@yahoo.com>
To: users@tomcat.apache.org
Sent: Mon, 10 Apr 2006 07:37:57 -0700 (PDT)
Subject: how setup landing page in tomcat



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.
________________________________________________________________________
Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection.

Re: how setup landing page in tomcat

Posted by Alexander Panzhin <ja...@balticum-tv.lt>.
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 <py...@gmail.com> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
> 			
> ---------------------------------
> 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 


Re: how setup landing page in tomcat

Posted by Bryan <br...@yahoo.com>.
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 <py...@gmail.com> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org



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

Re: how setup landing page in tomcat

Posted by P Y <py...@gmail.com>.
(not very TC specific) ...
Use a "refresh"
http://www.html-reference.com/META_httpequiv_refresh.htm


On 4/10/06, Bryan <br...@yahoo.com> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org