Shouldn't it be "/*.txt" instead of "*.txt" ?
WBR, Fedor.
> -----Original Message-----
> From: Christopher Hull [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 26, 2039 8:29 AM
> To: [EMAIL PROTECTED]
> Subject: Servlet aliasing in Tomcat
>
>
> I'm trying to get a servlet to fire off for a given file type. This
> doesn't seem to work, but the setup looks pretty straightforward.
>
> In my web.xml I set up a servlet.
>
> <servlet>
> <servlet-class>com.foo.aServlet</class>
> <servlet-name>handleFile</name>
> </serv.et>
>
> <servlet-mapping>
> <servlet-name>handleFile</s-name>
> <url-pattern>*.txt</url-pattern>
> <servlet-mapping>
>
> When I ask for the servlet directlly by name it comes up, yet
> when I ask
> for a .txt file (which exists) the servlet isn't found.
>
> Does this feature currently work in Tomcat?
>
> Thanks;
> -Chris
>
> ______________________________________________________________
> _____________
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
> http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html