tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Panzhin <jalex...@balticum-tv.lt>
Subject Re: how setup landing page in tomcat
Date Mon, 10 Apr 2006 19:50:11 GMT
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.foucou@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 


Mime
View raw message