tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Powers" <>
Subject RE: Serve a file instead of a page using Tomcat.
Date Thu, 13 Apr 2006 14:17:13 GMT
If the file is in the web folder then you can just path to it

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 [] 
Sent: Thursday, April 13, 2006 8:35 AM
Subject: Serve a file instead of a page using Tomcat.


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:
For additional commands, e-mail:

View raw message