Mapping a file to a URL pattern on Tomcat?

2008-06-20 Thread Vinay Chilakamarri
Hi, I want to send a response(which is basically a file on the disk) to a specific URL pattern. While I know that we could do this using directives in Apache HTTPD, I am not sure how to do this on Tomcat. I could see that we can map Servlets to a URL pattern. Is there a way that we can map a

Re: Mapping a file to a URL pattern on Tomcat?

2008-06-20 Thread Youssef Mohammed
any static file in your WAR can be accessed thru a URL eg. the file.png in the root directory in you site.war can be accessed thru http://localhost:8080/site/file.png On Fri, Jun 20, 2008 at 7:49 PM, Vinay Chilakamarri [EMAIL PROTECTED] wrote: Hi, I want to send a response(which is