In the web.xml you can define a url pattern for servlets, eg:

        <servlet>
                <servlet-name>myServlet</servlet-name>
                <url-pattern>/directory/*.xml</url-pattern>
                <servlet-class>class.MyServlet</servlet-class>
        </servlet>

See the servlet spec from sun for more information about the settings in
your web.xml

> -----Original Message-----
> From: Aaron Chan [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 9:56 AM
> To: 'Tomcat Users List'
> Subject: How to configure tomcat to forward files to diff servlet
> 
> 
> 
> Hi, I want to make tomcat to forward request for certain file type etc
> .xml to a servlet. May i know how to do it?
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

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

Reply via email to