Hi

Assuming you need to redirect everything except "/index.html", then the
following will probably work:

    <servlet-mapping>
        <servlet-name>default</servlet-name>
        <url-pattern>/index.html</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>SearchServerServlet</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
    </welcome-file-list>

Note that this will NOT catch index.html files in different folders.

Regards,
  Steffen


-----Ursprüngliche Nachricht-----
Von: Paul Taylor [mailto:paul_t...@fastmail.fm] 
Gesendet: Freitag, 2. April 2010 10:52
An: Tomcat Users List
Betreff: Would like to extract every request to servelt except index.html

I would like every request to be redirected to a central servlet EXCEPT  
if the  request is simply index.html, but at the moment everything gets 
redirected to the servlet, how could I do what I want

This is extract from my web.xml
 
<servlet-mapping>
  <servlet-name>SearchServerServlet</servlet-name>
  <url-pattern>/</url-pattern>
</servlet-mapping>
<welcome-file-list>
    <welcome-file>index.html</welcome-file>
</welcome-file-list>

thanks Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to