I understand what you are saying... My appbase is the default "webapps" directory. Under webapps I created a video\3gp folder and in it is a file video.3gp. I added the following Mime mapping to the web.xml
<mime-mapping> <extension>3gp</extension> <mime-type>video/3gpp</mime-type> </mime-mapping> I stopped and then started tomcat and entered the URL in the browser http://localhost:8080/video/3gp/video.3gp however I receive 404 "The requested resource is not available... -----Original Message----- From: John Powers [mailto:[EMAIL PROTECTED] Sent: Thursday, April 13, 2006 11:13 AM To: Tomcat Users List Subject: RE: Serve a file instead of a page using Tomcat. Whatever file you defined as a host in your server.xml will work.. (or any subdirectory of course). So if your appbase is "c:\someDirOnMachine\stuff\abc\xyz\" And in there you have a folder called "\123\" With a file blah.ext You can just serve out with http://Hostname:port/123/blah.ext -----Original Message----- From: Rob Elliott [mailto:[EMAIL PROTECTED] Sent: Thursday, April 13, 2006 9:26 AM To: Tomcat Users List Subject: RE: Serve a file instead of a page using Tomcat. Thanks for your response, I don't see a "web" folder for Tomcat, only under webapps. Will I need to deploy a WAR file to do this? Thanks... -----Original Message----- From: John Powers [mailto:[EMAIL PROTECTED] Sent: Thursday, April 13, 2006 10:17 AM To: Tomcat Users List Subject: RE: Serve a file instead of a page using Tomcat. If the file is in the web folder then you can just path to it http://localhost:8080/somedir/somefile.ext But if it isn't, then a servlet can read in from a file stream and read out to the servlet's out stream... -----Original Message----- From: Rob Elliott [mailto:[EMAIL PROTECTED] Sent: Thursday, April 13, 2006 8:35 AM To: users@tomcat.apache.org Subject: Serve a file instead of a page using Tomcat. Hello, Users will be entering a file URL with file extension into browser. How must you configure Tomcat to serve up a file for browser download rather than a web page? Thanks in advance, Information contained in this e-mail and any attachments are intended for the use of the addressee only, and may contain confidential information of Ubiquity Software Corporation. All unauthorized use, disclosure or distribution is strictly prohibited. If you are not the addressee, please notify the sender immediately and destroy all copies of this email. Unless otherwise expressly agreed in writing signed by an officer of Ubiquity Software Corporation, nothing in this communication shall be deemed to be legally binding. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]