tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Barney Hamish <Hamish.Bar...@ect-telecoms.de>
Subject RE: How to configure tomcat to forward files to diff servlet
Date Thu, 26 Sep 2002 08:00:04 GMT
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:altcess@accom.per.sg]
> 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:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:tomcat-user-help@jakarta.apache.org>
> 

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message