tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fredrik Jonson <pt97...@student.bth.se>
Subject Re: Servlet mapping for root directory in a webapp?
Date Thu, 07 Aug 2003 11:01:43 GMT
Following up to myself here... 

On Thu, 7 Aug 2003, Fredrik Jonson wrote:

> I'm trying to get tomcat (from sun's jwsdp1.2) to do a default mapping. 
> 
> I (and a lot of other people, apparently =) have tried:
> 
>         <servlet-mapping>
>                 <servlet-name>MainView</servlet-name>    
>                 <url-pattern>/</url-pattern>
>         </servlet-mapping>

Today I changed it to:

         <servlet-mapping>
                 <servlet-name>MainView</servlet-name>
                 <url-pattern>/index.html</url-pattern>
         </servlet-mapping>

And, as I understand it, tomcat(?) returns that servlet mapping for
requests for the root catalog. Well, it is a kind of workaround, but
since it works well enough I'll just accept that and continue. 

But if anyone know more about the magic behind it all, I'd be very
greatful for a thorough explanation of how and why it works. 

TIA & regards, 
-- 
Fredrik Jonson


Mime
View raw message